Skip to Main Content

Adding parameters to request

srhcanApr 25 2012 — edited Apr 25 2012
Hi all,

I have a JSP Reports.jsp. Users may call this JSP with one or more parameters so the request object in this JSP may contain one or more parameters.
Now inside this JSP I need to add 2 more parameters to that request object before forward/redirect to antoher JSP ReportsView.jsp. How can I do that?

For example suppose Reports.jsp receive 3 parameters: employeeId, status, payRate

Inside the Reports.jsp I need to add 2 parameters: reportPath, reportPrivilege to the request object before forward/redirect to ReportsView.jsp.

So inside the ReportsView.jsp all 5 parameters are available correctly:

String employeeId = request.getParameter("employeeId");
String status = request.getParameter("status");
String payRate = request.getParameter("payRate");
String reportPath = request.getParameter("reportPath");
String reportPrivilege = request.getParameter("reportPrivilege");
This post has been answered by DrClap on Apr 25 2012
Jump to Answer
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked due to inactivity on May 23 2012
Added on Apr 25 2012
1 comment