You probably need to encode the string first. Check out java.net.URLEncoder to do this.
-----Original Message----- From: Tiffany C. [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 2:26 PM To: [EMAIL PROTECTED] Subject: spaces in variable values 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
