hi!

  At 19:00 05.04.2002 -0800, you wrote:

>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

convert your html file to jsp, that way you can use URLEncoder to encode
the params, in your servlet use URLDecoder to decode the params.

-mw


>I will appreciate very much for your help
>
>Have a good weekend
>
>bin
>
>
>
>Do You Yahoo!?
>Yahoo! Tax Center - online filing with TurboTax

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to