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.
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