User Profile

Collapse

Profile Sidebar

Collapse
abctech
abctech
Last Activity: Nov 13 '07, 12:28 PM
Joined: Dec 30 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • abctech
    started a topic Comparision between Date strings.
    in Java

    Comparision between Date strings.

    I have an Html page, user enters a Date (dd-mm-yyyy) here. There's a servlet connected in the backend for processing this submitted information, it must have a method to compare this entered date with the dates obtained from the backend table which again are retrieved as strings (dd-mm-yyyy). Can anyone suggest how to carry out comparision between these date strings?

    Eg:

    String Entered Date: "28-02-2007"...
    See more | Go to post

  • abctech
    replied to Changing user font style on line
    in Java
    This page that you have provided the link to is in PHP....
    See more | Go to post

    Leave a comment:


  • abctech
    replied to jsp discussion
    in Java
    Are all those 3 jsp's a part of the same session? Is it an object that you are trying to post from one jsp to another?

    If yes the you can perhaps bind the concerned object variable to the session as a session attribute using setAttribute();
    This way you can retrieve the set value in any of the jsp's saying getAttribute();...
    See more | Go to post

    Leave a comment:


  • This is the Java forum.You need to be posting in the .NET forum....
    See more | Go to post

    Leave a comment:


  • abctech
    replied to Stars pattern program
    in Java
    Hi,
    Couldn't resist, remembered the times when I just started with programming and would be equally confused about these * programs.

    OP,
    I've used Thread.sleep() so you can actually see what output you are getting due to using char a = '*' ; This method will slow your output a bit and allow you to take a good look at every line.

    Code:
    import java.io.*;
    import java.util.*;
     
    public class
    ...
    See more | Go to post

    Leave a comment:


  • abctech
    replied to Stars pattern program
    in Java
    Have you declared and initialized variable input in your program? If you haven't how will the compiler recognize it ?!...
    See more | Go to post

    Leave a comment:


  • abctech
    replied to Stars pattern program
    in Java
    Colin,
    Tell me how do we declare string literals in Java? And then check if you are doing it the right way.

    Your variable 'num1' is a String or an int? You want the user to input the number of lines dont you? 1,2,3 etc are numbers(integer s) not strings.

    You can simply say:
    Code:
    DataInputStream input = new DataInputStream(System.in);
    		
    System.out.println("How many lines you have to print?");
    ...
    See more | Go to post

    Leave a comment:


  • abctech
    replied to Changing user font style on line
    Hi,
    I think you need Javascript perhaps, but anyways if it has something to do with server side programming then JSP would be an option.I think our Java forum experts will be able to shed more light on this.

    Do you have any code which you've written so far?

    Will you be able to post the links to those sites which you've mentioned above?

    P.S: Try posting in the Javascript and the Html/CSS forum...
    See more | Go to post

    Leave a comment:


  • abctech
    replied to Changing user font style on line
    in Java
    Hi,
    I think you need Javascript perhaps, but anyways if it has something to do with server side programming then JSP would be an option.I think our Java forum experts will be able to shed more light on this.

    Do you have any code which you've written so far?

    Will you be able to post the links to those sites which you've mentioned above?

    P.S: Try posting in the Javascript and the Html/CSS forum...
    See more | Go to post

    Leave a comment:


  • Have a read at the JavaMail API first and then make an attempt at your code, post the code here if you get stuck or are getting any exceptions.

    P.S : This is the Java forum, .Net posts are made in the .Net forum if you are trying to program in it....
    See more | Go to post

    Leave a comment:


  • abctech
    replied to serializing an object
    in Java
    Hello,

    If you are trying to call the two methods [viz,writeObject () and readObject() ] declared in class- 'TestSerializeC lass' from within the class- 'TestSerialize' you will get an error, can you think why?

    Hint: Look at the access modifiers of those methods....
    See more | Go to post

    Leave a comment:


  • abctech
    replied to Cars program
    in Java
    Hi,
    Have you started with your task?

    Your class should be something like this:
    class Car{

    //make the variable declarations
    //declare and define the specified constructors
    //declare and define the specified methods

    };

    After having created this class you will be testing it for which you will create an Applet, but thats the second part.

    Now you have...
    See more | Go to post

    Leave a comment:


  • Hi,
    This code of yours is in Javascript and you have posted in the Java forum. You need to be posting in the JS forum.

    Secondly, some of us do use and understand Javascript like myself ( just a little though), but your code is heavily unindented and I think thats the reason you are getting errors in the first place.

    Please indent it first, your comments and the actual code lines all seem to be mixed up, can't...
    See more | Go to post

    Leave a comment:


  • abctech
    replied to Stars pattern program
    in Java
    Hello,
    First of all taking one look at your program I can say you must be getting more than a few compile time errors!

    -Giving a ';' after main()? That will make it abstract and its body will be ignored.

    -A character literal needs to be enclosed in single quotes(' ') not double(" ").

    -The method readLine() is capable of throwing an 'IOException'.T his exception is a type of 'Java Checked...
    See more | Go to post

    Leave a comment:


  • abctech
    replied to Help With Javascript
    Hello Berri,
    Java and JavaScript are not the same.This is the Java forum pal, you need to post in the JavaScript forum.They'll be able to help you out with the appropriate suggestions.

    By the way here's a good link to start learning JavaScript if you are looking to code in it....
    See more | Go to post
    Last edited by abctech; Feb 24 '07, 07:22 PM. Reason: adding link

    Leave a comment:


  • abctech
    replied to Explanation of this header cache code
    in Java
    Thanks,
    Got it.

    Interface- 'HttpServletRes ponse'
    public void addDateHeader(j ava.lang.String name,long date);

    dmjpro-
    Here's a link I just came across regarding preventing caching of web pages(but its only for IE)...
    See more | Go to post

    Leave a comment:


  • abctech
    replied to Explanation of this header cache code
    in Java
    I think its the disk, isn't our surfing history stored in those 'History','Temp orary Internet Files' and some other such temporary folders on our hard drive?

    P.S:
    By the way, can I ask you in which class/interface is the addDateHeader(S tring,int) method located?...
    See more | Go to post

    Leave a comment:


  • abctech
    replied to Explanation of this header cache code
    in Java
    Hello,
    At the top of every JSP the above header attributes are used to prevent caching.
    Now I don't know in depth about 'Caching' but whatever little I know I'll share it with you, for the details we'll have to wait for an expert opinion :)

    Well,
    Http headers used for cache control to prevent the web pages from being cached by the browser and proxy server.

    response.setHea der("Cache-Control","no-cache");...
    See more | Go to post

    Leave a comment:


  • abctech
    replied to Loading text from one box to another
    in Java
    Helo kingerk,
    This is the Java forum, you should be posting in the JavaScript forum if you're using JS.They'll be able to provide you with the correct solution.

    Anyway, if you like you can post whatever code you have so far here as well, maybe some of us who do know a bit of JS can help you out(no guarantees though, remember this is the Java forum and Java != JS).
    See more | Go to post

    Leave a comment:


  • You are welcome, glad it helped....
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...