hello dion,

when you append '&age=30' to the query string which already has something
like '&age=25', the
parameter 'age' now has two values 25 and 30, the primary value being 25.
That is why you get 25 when you use
request.getParameter("age").

Probably, you may wish to use request.getParametervalues("age") which
returns an array of all values assigned
to this parameter.

hope this answers your question.....

Saravanan R





thanks Harlamov..

i'm able to get the 2nd method with
<%= request.getQueryString()%>

how do i get getRequestURL(HttpServletRequest req) work?

for url myrefererpage.jsp?name=bill&age=25
what i'm trying to do is replacing query parameter age with
other value, i've tried appending &age=30, but when i retrieve the
value with request.getParameter("age"), it return 25, not 30..

is there any solution for this without parsing & replacing the query
string?
thank you in advance!

Best regards,
 dion                          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

Reply via email to