Hello dion,
Tuesday, March 06, 2001, 6:05:15 PM, you wrote:
d> thanks Harlamov..
d> i'm able to get the 2nd method with
d> <%= request.getQueryString()%>
d> how do i get getRequestURL(HttpServletRequest req) work?
just try smth like this
String pageName = javax.servlet.http.HttpUtils.getRequestURL(request);
d> for url myrefererpage.jsp?name=bill&age=25
d> what i'm trying to do is replacing query parameter age with
d> other value, i've tried appending &age=30, but when i retrieve the
d> value with request.getParameter("age"), it return 25, not 30..
d> is there any solution for this without parsing & replacing the query
d> string?
If U want to use this request later (in other pages) U should call
response.sendRedirect(your next page); It should be better to change
age parameter using request.setAttribute("attribute name", attribute
value);
for example:
request.setAttribute("age", 30);
response.sendRedirect("new.jsp")
d> thank you in advance!
--
Best regards,
Harlamov mailto:[EMAIL PROTECTED]
===========================================================================
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://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