Sukhwinder Singh
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#c urrent?rn= <%=roomnam e%>" 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?r n=<%=roomn ame%>" 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
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#c
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?r
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
:o)
Ant
ASKER
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?r n=<%=roomn ame%>#curr ent" name="MessageWin">
It will work if we write like this
<FRAME SRC="displayMessages.jsp?r
ASKER
Is it?
OK I'll try it and then tell you I think it'll work.........