I link to a jsp page and send a parameter like this:
<a href=mypage.jsp?param=somestring >
which works fine. However, if I send the parameter to a servlet like:
<FORM METHOD="get" ACTION="/myservlet">
<INPUT TYPE=submit NAME=astring VALUE="Send">
<INPUT TYPE=hidden NAME=param VALUE="somestring">
and do some processing and then return the same jsp page with new parameter
by:
string = "newstring";
RequestDispatcher rd =
this.getServletContext().getRequestDispatcher("/mypage.jsp?"+string);
rd.forward(request,response);
the parameter appears not to be updated in mypage.jsp, the parameter remains
its old value. Is there a way to do this?
Thanks,
Matt
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets