sumit vashishta

Greenhorn
+ Follow
since Jun 14, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by sumit vashishta

hi all,
how to compare 2 date objects....
when i use methods of Date class...i get a warning when using before(), after()
saying that they are deprecated...that is correct.
in what other way can i compare...
pl. give code as a hint..
thankx in advance
22 years ago
hi friends
my problem is urldecoder is working on intranet but its giving nullpointer exception on web server .
first i am sending the value through hiden input
encode("dfdfgdgd dg d");
this is first servlet
And in secound servlet i am doing as follows
decode(getparameter("xxx:"));//on this line its giving the above exception
what is this problem? & what is solution for this?
If posiple pl. send me piece of code.
I am useing jswdk1.0.1
SUMIT
23 years ago
I don't know javascript.i what to know is it posible in this to expire the page.if yes pl. send me code.
thanx
sumit
The previous page should expire as soon as the user goes to the next page.is it possible in servlets?
I think it is possible using java script but i don't know
java script.
Pl. show the code in servlets/java script if possible.
thanks in advance.
23 years ago
hi all!
my servlet application properly works in jsdk2.1.
however when i try and run it in jswdk 1.0.1 the server
gives an exception of java.io.Exception and says Socket
closed.
Still my application works properly but the error on server
console persists whenever a client gets connected.
I don't understand that why this error is comming on the
server side even if my application works fine.
thanks in advance
23 years ago
hi folks!
thanks for your suggestion Prasanna.
my problem is that how can i connect one client to a
ServerSocket when one client is already connected.
how can i connect multiple clients to a single port of
a server?When one client is connected to the port the other client does not get reply from the server?
How can this be made possible?
thanks in advance
how can i connect multiple clients to a single port of
a server?When one client is connected to the port the other client does not get reply from the server?
How can this be made possible?
thanks in advance
23 years ago
hi dave and others
is there any method/code in servlets or java wherein I can do the coding instead of javascript.
thanks dave
23 years ago
hi jayakumar and mohamed,
will try your suggestions
thanks to both of u.
23 years ago
hi all !
my problem is that I want my servlet code to function in such a way that the user cannot go to the previous/back page even if he clicks the backspace key or back button.
I have tried using the setStatus(301) but it gives 'page cannot be displayed' error message. would appreciate if someone can help me.
thanks in advance.
23 years ago
hi Subbu
I think that use service() method which is multi-threaded so you
do not need to take care about multi-threading. if you want to use the features of doGet() or doPost() just write in your html code
<METHOD=POST....> - html code
for the same code in servlet will be
public void service(req,res)
it is same as public void doPost(req,res)
same is true for doGet()
23 years ago
thanks Bill.
what you said was correct.
my problem was solved.
23 years ago
I am able to encode the string in first servlet but unable to
decode it in another servlet.
Even if I import java.net it throws exception that URLDecoder class not found !!
can't find the reason for this.
I am using javawebserver.
can there be a problem using it.
Is there any other method to decode.??
thanks in advance.
23 years ago
I am able to encode the string in first servlet but unable to
decode it in another servlet.
Even if I import java.net it throws exception that URLDecoder class not found.
can't find the reason for this.
I am using javawebserver.
Is there any other method to decode.??
thanks in advance.
[This message has been edited by sumit vashishta (edited June 14, 2001).]
[This message has been edited by sumit vashishta (edited June 14, 2001).]
23 years ago