FYI, to convert a string to a URL, u can use:
java.net.URLEncoder.encode(str);

Makes our life easy.

----- Original Message -----
From: "Dharmesh Patel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 09, 2001 2:49 AM
Subject: Re: Redirect to JSP with parameters missing


> Dear Gina,
>       You have to specify special value i.e. '+' instead of space if you
> wish to pass space as a parameter....
>   you have to rewrite your code as
> response.sendRedirect("aJspPage.jsp?paramA=aa+ a&paramB=bbb");
> instead of
> response.sendRedirect("aJspPage.jsp?paramA=aa  a&paramB=bbb");
>
> Dharmesh
> ----- Original Message -----
> From: "gina" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, February 04, 2001 12:56 AM
> Subject: Redirect to JSP with parameters missing
>
>
> > Hi all,
> >
> > I'm trying to send a redirect from Servlet to a JSP.
> > In the Servlet, I have:
> >     ...
> >     response.sendRedirect("aJspPage.jsp?paramA=aa  a&paramB=bbb");
> >     ...
> >
> > However, aJspPage.jsp only receives the parameter
> >     paramA=aa
> > and everything after the space is dropped.
> >
> > The curious thing is, this works fine on my other colleagues' PC but not
> > mine. And when I tried to call the jsp direct from browser with the same
> > parameters, it works.
> >
> > My configuration (as well as other colleagues) is:
> >     NT4 SP6
> >     IE 4 SP2
> >     Weblogic Server 5.1 SP6
> >
> > Pls help. Thanks!
> >
> > Gina
> >
> >
>
===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> > 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".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> 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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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