10.18.2006

 

ActionMessages in Struts Bridge

The Struts Bridge does not appear to be set up to support ActionMessages by default. To get them to work, you must add the following lines to your struts-portlet-config.xml file:


<config>
<render-context>
<attribute name="org.apache.struts.action.ACTION_MESSAGE"/>
<attribute name="org.apache.struts.action.MESSAGE"/>
....
</render-context>
</config>


These will allow the messages to pass properly to your JSP pages.

This page is powered by Blogger. Isn't yours?