hello,
i have a jsp that builds a form that is only able to pass one of the two
necessary parameters (url encoded) on to another jsp containing a
frameset. this is due to the first parameter being selected through a
pull down that's generated dynamically, and the second attribute needing
the first one to be defined.
I have some code on the frameset jsp that, based on the first parameter
set when the form is submitted, figures out the second one, and adds it
to the url called from the frameset:
<% code getting request from form and using it to set String value2 %>
<frameset>
<frame src="page.jsp?param1=value1¶m2=<%= value2 %>">
<frame src="other_frame.jsp">
</frameset>
but when this is parsed, the url still only shows
page.jsp?page.jsp?param1=value1
it doesn't even show the second parameter name, which is hardcoded on
the frameset src. I tried everything from hardcoding value2, to using
request.setAttribute and pageContext.setAttribute, but nothing works...
it seems like once the form is submitted, I can't change the url
enconding at all.
is this something the container (tomcat) is enforcing? I find it really
strange, since the same solution worked fine using php, and seems as the
obvious way to do this.
any help would be greatly appreciated... sorry to bother you guys on a
sunday.
thanks in advance,
Oliver
===========================================================================
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