----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

You need to URLEncode these special characters in the query string.


On Thu, 30 Mar 2000, rob anderson wrote:

> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files.  Don't make us guess your problem!!!
> ----------------------------------------------------------------
> 
> We have a HTML page that fires URL's with parameters from input fields,
> rather than using a form submit. If one of the parameters contains a % JServ
> will fail with the following...
> 
> java.lang.StringIndexOutOfBoundsException: String index out of range: 3
>  at java.lang.StringIndexOutOfBoundsException.<init>(Compiled Code)
>  at java.lang.String.substring(Compiled Code)
>  at javax.servlet.http.HttpUtils.parseName(Compiled Code)
>  at javax.servlet.http.HttpUtils.parseQueryString(Compiled Code)
>  at org.apache.jserv.JServServletManager.getUrlSessionId(Compiled Code)
>  at org.apache.jserv.JServConnection.processRequest(Compiled Code)
>  at org.apache.jserv.JServConnection.run(Compiled Code)
>  at java.lang.Thread.run(Compiled Code)
> 
> 
> An example of code that would repeat this is...
> 
> Create a HTML page with a javascript method that does something like
> <html>
> <head>
> <script>
> function init()
> {
>    self.location='/servlets/xxxxx?parm1=%';
> }
> </script>
> </head>
> 
> <body onload="init();">
> 
> 
> </body>
> </html>
> 
> Rob Anderson
> 
> 
> 
> 
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]
> 



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to