I have a portlet implemented using JSPs. I would like, when the edit mode is displayed, when the user clicks the Submit button on the edit page, that the view page of the portlet gets displayed. I tried using the PortletURL.setPortletMode() method, which is supposed to add a mode change parameter to the URL, but that is not working (I did check the URL generated and it appears to be correct with a "mode=edit" parameter), the edit page is displayed again.
Here is what is in my doEdit method:
PortletURL urlSubmit = response.createActionURL(); urlSubmit.setPortletMode(PortletMode.VIEW); request.setAttribute("submit", urlSubmit.toString());
<form action="${submit}" method="post">
/portal/auth/portal/default/default/ImagePortletWindow?action=5&mode=view