How to POST a parameter from servlet to jsp?

i have two parameters and i wish to first wrap them into POST method instead of using GET. How can i do that in Servlet? I tried using HttpUrlConnection but it does not seem work for me. Can anyone provide me a simple example? Perhaps HttpClient too.
[297 byte] By [Stephen@java] at [2007-9-30 17:39:28]
# 1

Why are u using the HttpUrlConnection and HttpClient interfaces ?

The best way to implement what u want is thru HttpServletRequest and HttpServletResponse interfaces.

Make sure to import the javax.servlet.http.* package.

Go thru it's documentation also. It's quite easy. U can simply use the request.getParameter("parameter_name") method in the servlet's doGet() method.

Hope this helps !!

sherbir at 2007-7-6 14:08:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
1: clientjava app/browser|\/2: servlettomcat/other..|\/3: jsp tomcat/otherIs this what you want to do?Or do you just want to do steps 2-3?
declangallagher at 2007-7-6 14:08:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...