Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

URGENT HEELP NEED IN DECODE  RSS feed

 
sumit vashishta
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suspect getParameter is returning null. You should check for null before calling decode.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!