I was trying to use displaytag inside a portlet that has a form that is 'multipart/data-form' enctyped. When I post to the portlet, I use commons-fileupload to parse the ActionRequest to find what action to perform. One of the actions adds a new bean to a List that exists in the PortletSession. My question is this....how does one reference the PortletSession from displaytag?
I have figured out a solution (required hacking the displaytag-portlet source) where I just pass the PortletSession attributes into the HttpSession map. Something like this: PortletSession portletSession = this.portletRequest.getPortletSession(); HttpSession httpSession = pageContext.getSession(); Enumeration portletNamesEnumeration = portletSession.getAttributeNames(); while (portletNamesEnumeration.hasMoreElements()) { String name = portletNamesEnumeration.nextElement().toString(); Object value = portletSession.getAttribute(name); httpSession.setAttribute(name, value); } I *have* to believe there is a better way to do this. Anyone got a suggestion? ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user