How can I use HttpServlet?
Posted on 2002-07-06
I want to do a quite simple thing but I don't know exactly how. I work with IBM Visual Age.
Here is what I want:
1 - The user enters information and then click on a button
2 - The "click" event calls my method with the information as parameters.
3 - My method execute a query
4 - And then my method shows the results of that query using jsp.
I want to use the concepts of "request" and "response" but I don't know exactly how.
What I have problem with is no. 2 (where I get the "request" and "response"?) and no. 4.
Here is my method' signature:
public void showUnit(HttpServletRequest request, HttpServletResponse response)
Thanks a lot for your time,