Hi All,
I'm attempting to build some portlets and keep running into issues limited by my Java experience and deadline crunches. What I'm attempting at the moment is a selection page that posts to a display page that contains a Jasper report. What I am trying to determine is how to set conditional view methods. I'm using MVCPortlet and I have the following action request:
1
2@ProcessAction(name = "getFundingStatusAction")
3public void getFundingStatusAction(ActionRequest actionRequest, ActionResponse actionResponse) throws IOException, PortletException {
4
5 String[] selectedCountries = actionRequest.getParameterValues("countryList");
6
7 if (selectedCountries != null) {
8 //actionRequest.setAttribute("countryList", selectedCountries);
9 actionRequest.getPortletSession().setAttribute("selectedCountries", selectedCountries);
10
11 actionResponse.setRenderParameter("jspPage", "/html/fundingstatus/fundingstatus_report.jsp");
12 }
13 }
When my portlet routes to fundingstatus_report.jsp my generic doView is not being called.
My question is how do I tell the actionResponse what the Render View method should be?
Thanks!
Please sign in to flag this as inappropriate.