hi all,
 
Could anyone please teach me how to do POST from a jsp page to another jsp page??
 
I have a jsp page which gets requests and distributes it to other pages.
I am using <jsp: forward ....../>, response.sendRedirect("someURL"), or dispatcher.forward(res,req).
 
However, it seems to me that those methods use GET method when doing forwarding or redirecting
request because I see all the query strings (key and value pair at address bar).
 
For example, a POSTed request with login and user_ID comes in selector.jsp and selector.jsp
does  <jsp: forward ....../>, response.sendRedirect("someURL"), or dispatcher.forward(res,req) to
target.jsp. Then the forwarded(or redirected) request becomes mydomain.com/target.jsp?login=scott&usr_ID=1234 (shown at address bar). I don't want to show all those key&values when redirecting(forwarding) request.
 
How do I redirect (forward) request to another jsp page just like POST method ??
Thanks in advance.
 
Chang.
 

Reply via email to