My problem is actually like this:

<%
url = "udpate_error.jsp?msg=" + e.getMessage();
response.sendRedirect (url);
%>

where e.getMessage() returns an error from the database which could look
like this:

"Account does not exist."

I found out that I have to parse the above string and replace all spaces
with a "%20" before appending it to the url. It worked after
I did this. Is there a better way?

Sandy





______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to