aspose file tools*
The moose likes Servlets and the fly likes URGENT HEELP NEED IN DECODE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "URGENT HEELP NEED IN DECODE" Watch "URGENT HEELP NEED IN DECODE" New topic
Author

URGENT HEELP NEED IN DECODE

sumit vashishta
Greenhorn

Joined: Jun 14, 2001
Posts: 15
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
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I suspect getParameter is returning null. You should check for null before calling decode.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URGENT HEELP NEED IN DECODE
 
Similar Threads
Java GUI tools - Survey in 3 minutes for my thesis
servlets - decoding string
urgent - decoding string in servlets
servlet-jdbc - internal servlet error (error:500)
URLEncoder & URLDecoder