views:

288

answers:

2

After getting a input from the first page, I passed it in to the url using get method. In the next page I want to process it using jsp, but how do I get that parameter.

+2  A: 

You can get it off of the request object.

request.getParameter("<param name>");
timdisney
A: 

I just tried with a simp[le program but this is the output,

An error occurred at line: 5 in the jsp file: /jsp/emp/empdeletemodify.jsp Duplicate local variable request 4: <% 5: HttpServletRequest request; 6: request.getParameter("empid"); 7: %>

The request object already exist on every jsp page so you don't have to declare it. Just use it.
timdisney
Thanks buddy, it's working.