>Hello all,
>
>we've got some problems when passing on string arguments to a JSP-page
>(using the get-method) when there is a Ampersand-sign (&) in the passed
>argument string.
>
>Does anyone know what the correct substitution for the sign is ?
>
>Thanks,
>
>Jochen Steing�tter


You must parse the string a do the following substitutions:

            blank space " " ---> "%20"
            "%"    ---> "%25"
            "&"    ---> "%26".

This is the characters that producced more problems.

For example, if you have the next url:

        http://myurl/myjsp.jsp&interest=20% per product & 10% more

you must change the problematic characters and then have it:


http://myurl/myjsp.jsp&interest=20%25%20per%20product%20%26%2010%25%20more
--
Saludos/Regards:

Sergio Queijo Diaz
[EMAIL PROTECTED]
Uni�n Fenosa International SW Factory
Pedro Teixeira n8. 28020 Madrid. SPAIN
Tlf. +34915553361 http://www.uf-isf.es

===========================================================================
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