Thursday, April 14, 2005

Struts and the Portal Bridge

With my new job, I have been working on creating some struts portlets. Really just struts applications that can play well in the bridge environment. I just did my first Edit view and got stuck on returning to the normal view. My view was showing up just fine but, the portlet state in Jetspeed (1) was not being restored. After adding the following, everything was returned to the proper state.



ActionResponse actionResponse = (ActionResponse) httpServletRequest.getAttribute("javax.portlet.response);

actionResponse.setPortletMode(PortletMode.VIEW);

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home