Link to home
Start Free TrialLog in
Avatar of Sukhwinder Singh
Sukhwinder SinghFlag for India

asked on

JSP QueryString Problem

Hello,
I am using Tomcat 3.21 for JSP.
I am facing a problem with jsp. I want to send some information to other jsp page.
When I use a url like this in frame src:

<FRAME SRC="displayMessages.jsp#current?rn=<%=roomname%>" name="MessageWin">

other page is unable to retrive querystring value and
request.getParamter("rn") returns null

Then I have to use url like this to get that querystring value

<FRAME SRC="displayMessages.jsp?rn=<%=roomname%>" name="MessageWin">

I have to remove #current from the src attribute.
I want to include #current becuase I want to scroll page down to appropriate
place on displayMessage.jsp.

Is there any solution to this problem.

Sukhwinder Singh  
 

 


   

ASKER CERTIFIED SOLUTION
Avatar of a.marsh
a.marsh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sukhwinder Singh

ASKER

It means there is problem with JSP engine....
Is it?

OK I'll try it and then tell you I think it'll work.........
Avatar of a.marsh
a.marsh

Not sure - but if you think about it there should never be this kind of "situation" with a URL as you would normally submit details via a form and then there would never be a #current.

:o)

Ant
Your method work but I have also found a solution to my problem...
It will work if we write like this
<FRAME SRC="displayMessages.jsp?rn=<%=roomname%>#current" name="MessageWin">