This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Servlets and the fly likes urgent - decoding string in servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "urgent - decoding string in servlets" Watch "urgent - decoding string in servlets" New topic

urgent - decoding string in servlets

sumit vashishta

Joined: Jun 14, 2001
Posts: 15
I am able to encode the string in first servlet but unable to
decode it in another servlet.
Even if I import 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

Joined: Mar 22, 2000
Posts: 12982
It sounds like your servlet engine is using the JDK 1.1 library for the 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.
sumit vashishta

Joined: Jun 14, 2001
Posts: 15
thanks Bill.
what you said was correct.
my problem was solved.
I agree. Here's the link:
subject: urgent - decoding string in servlets
It's not a secret anymore!