IMay be you need URL encoding i.e replacing spaces with + and (replacing some
other characters as well )

In servlets we use encodeUrl  funciton






subramanian Athimoolam <[EMAIL PROTECTED]> on 06/19/2000 03:31:24 PM

Please respond to A mailing list about Java Server Pages specification and
      reference <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Imran Baig/CresSoft)

Subject:  passing parameter from one jsp to another jsp using scripts??????



hi
here i am passing variable through one jsp page to another jsp page


<INPUT TYPE="button" VALUE="preview" onClick="go();">



<SCRIPT type="text/javascript" language="JavaScript">
        function go(){

       var ch=document.form1.Nmessage.value;
       var ca=document.form1.Ntopic.value;


location.href="pre.jsp?value=<%=request.getParameter("value")%>&catid=<%=request.getParameter("catid")%>&Value1="+ch+"&value1="+ca

  ;

}
</script>

the varile single string means no problem. more then one string(i want to
pass the whole line in one string) with space means the following error will
be coming.

Bad Request (400)
Your request to the server could not be understood. Please check to ensure
that the request you made is correct.


solution please!!!!!!!!!!!














________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to