AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

# Sign in the Query String

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help
View previous topic :: View next topic  
Author Message
Pallavi Thotakura
Guest





PostPosted: Mon Nov 24, 2003 9:55 pm    Post subject: # Sign in the Query String Reply with quote



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





PostPosted: Mon Nov 24, 2003 10:14 pm    Post subject: Re: # Sign in the Query String Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.