Hi
 
    If I have understood your question properly--
 
    There are two classes URLEncoder and URLDecoder in java.net package.
    Use these classes to encode and decode the value of your text box.
 
    Hope this helps.
 
 
Thanks & Regards
Balasubramaniyan Krithivasan
Software Engineer
 
 
 
 
 
 
 
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of bill tao
Sent: Saturday, April 06, 2002 4:00 AM
To: [EMAIL PROTECTED]
Subject: pass paramters from servlet to another

Hello, everybody,

I have one problem .

I write a javascript program  in javaservlet application as


 out.println("function preview() {");
 out.println("var questioncontent=addquestion.question.value;
 out.println("open(\"PreviewQuestion\"?"+questioncontent+",\"Window1, \"600,500\");

addquestion is name of the form and question is the name of textbox in this form.

as i know there is limit on the size of the parameter. so the paramter i passed probably has more than 250 characters. besides that how to deal with url encode. i means there are many space and special characters in the question .(url encode space as %20). In the servlet application which is called (previewQuestion) how can it get the parameter and decode them

I will appreciate very much for your help

Have a good weekend

bin



Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax

Reply via email to