 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Pallavi Thotakura Guest
|
Posted: Mon Nov 24, 2003 9:55 pm Post subject: # Sign in the Query String |
|
|
Hi All,
I am passing a query string to the browser from my servlet something
like this
res.sendRedirect("CC.jsp?FLAG=YES&ADDR1=#3502 North PL&CITY=NY");
My jsp page on IE 5.50 interprets these values correctly and I get the
desired attribute.
But one of my clients who also has the same version of IE the JSP page
is not able to see the values after FLAG=YES it ADDR1=#3502 North PL ,
CITY=NY are not received as Request parameters by the page.
Let me know if anything specific to the browsers settings.
Also I think to be on the safe side I need to encode the URL.
But without encodeing it works on my browser but not for the client
who has the same Browser version.
Please let me know.
Thanks in Advance Pallavi
|
|
| Back to top |
|
 |
Jonas Kongslund Guest
|
Posted: Mon Nov 24, 2003 10:14 pm Post subject: Re: # Sign in the Query String |
|
|
Pallavi Thotakura wrote:
| Quote: | I am passing a query string to the browser from my servlet something
like this
res.sendRedirect("CC.jsp?FLAG=YES&ADDR1=#3502 North PL&CITY=NY");
|
You must encode the above URL. Read section 2.2 in RFC 1738 to understand
why.
<http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc1738.html>
| Quote: | My jsp page on IE 5.50 interprets these values correctly and I get the
desired attribute.
|
No, IE is flawed. The '#' character is used to delimit an URL from an
optional fragment/anchor identifier so IE should always interpret it like
that.
--
Jonas Kongslund
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|