This line of code
response.setRenderParameter("details", recordsForm);
will only pass the recordsForm
object to the doView
method as parameter. Your JSP is likely trying to use attributes on the RenderRequest. This means in your doView
you will need to do something like the following
RecordsForm recordsForm = request.getParameter("details");
request.setAttribute("details", recordsForm);
There is also the option to use the portlet container runtime option javax.portlet.actionScopedRequestAttributes. You set this in your portlet.xml and it should take attributes you set in an action method and provide them as attributes in your render method, eliminating the need to move your objects from the parameters map to the attributes map yourself.
Unrelated note: It looks like you're using actionJsp
as an object variable in your portlet. That's not recommended because portlets should be coded to be thread safe. Object variables are shared between users and threads, so saving user specific state data in them will cause errors when you get multiple users.