Good. :)

-----Original Message-----
From: Tiffany C. [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 4:51 PM
To: [EMAIL PROTECTED]
Subject: Re: spaces in variable values


Got it:  error=URLEncoder.encode(errorTemp);

--- "Tiffany C." <[EMAIL PROTECTED]> wrote:
> Hello Steve,
>
> There are a couple areas where I need to pass
> variable
> values with spaces.
>
> Currently, I have:
> <%@ page import="java.lang.*, java.net.*"
> %>
>
> try{<stuff>}
> catch (Exception e) {
> String errorTemp=e.toString();
>                    Object error=null;
>
> error=encode(errorTemp);
> response.sendRedirect("region.jsp?error=" + error);
>                 return;
> }
>
> and I get the error:
> Method encode(java.lang.String) not found in class
>
> How can I fix this?  Thanks!
>
> -Tiffany
>
> --- "Mader, Steve"  wrote:
> > You probably need to encode the string first.
> Check
> > out java.net.URLEncoder
> > to do this.
> >
> > -----Original Message-----
> > From: Tiffany C.
> >
> > Hello!!
> >
> > I'm passing a variable and value through a url to
> a
> > jsp.  In the first jsp file I have:
> >
> >    <a
> > href="updateRegion.jsp?region=<%=region%>">Update
> > Region</a>
> > an example is updateRegion.jsp?region=South
> America
> >
> > In the second jsp file I have:
> >
> > String region =
> > (String)request.getParameter("region");
> >
> > If the region passed is South America the request
> > above only returns South.  How can I get region to
> > equal South America?
> >
> > Thanks for your help!!
> >
> > -Tiffany


__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

===========================================================================
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===========================================================================
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to