Or, since this is JavaScript, you might just wrap the string in escape(),
which will do the same thing.
    (*Chris*)

----- Original Message -----
From: "Vikramjit Singh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 06, 2001 1:40 AM
Subject: Re: [JSP-INTEREST] Space in URL


> use java.net.URLEncoder.encode();
>
> Vikramjit Singh,
> Systems Engineer,
> GTL Ltd.
> Ph. 7612929-3140
>
>
> -----Original Message-----
> From: Vibha Jindal [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 01, 2001 1:39 AM
> To: [EMAIL PROTECTED]
> Subject: Space in URL
>
>
> Hi,
>
> I have a problem. I am calling the following :
>
>
>
window.open('RpMainReportSrv?pathinfo=/docroot/RpFormatPage.jsp&hdFlgAction=
> 4&ReportId='+
>
>
'AU02'+'&auditid='+theForm.hdAuditId.value+'&LeadAuditor_Name='+theForm.hdLe
> adAuditor.value+
>       '&LA_Position='+document.frmProcessAuditInfo.txtLAPosition.value);
>
> The problem is that my hdLeadAuditor.value has a space. It is a name
field.
> Now, I want to pass this to my servlet. It works fine in IE 5.0, as it
> converts the space to a '+'. But, does not work in N etscape 4.7, as it
does
> not convert the blank to a space and gives a Bad Request. I tried
conerting
> the blank spaces to '+' manually in the JSP, before calling the Servlet,
but
> it is again converted to a space automatically.
>
> Can anyone help?
>
> Regards,
> Vibha
>
>
===========================================================================
> 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


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.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

Reply via email to