• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

urgent - decoding string in servlets

 
sumit vashishta
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like your servlet engine is using the JDK 1.1 library for the java.net package - it had the URLEncoder but not URLDecoder. The URLDecoder first appeared in JDK 1.2
you really should consider changing to Tomcat in order to keep up with the latest Java APIs.
Bill
 
sumit vashishta
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Bill.
what you said was correct.
my problem was solved.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic