Lukasz Lenart wrote:
Hi,
Error messages are stored in request, you have to subclass
ActionSupport and add some mechanism to store messages in session.
Regards
In Struts2 error messages are stored in the ValueStack in an object
implementing ValidationAware.
If your action extends ActionSupport, then means they're available as a
property of your action.
You can read them from any object in the ValueStack using OGNL. Have a
look at ValidationAware.
eg. to iterate through action errors:
<s:iterator value="actionErrors"></s:iterator>
They're not available in the request object. They are available in the
session object only if something puts them there for you (which is not
the default case).
The actionError tag applies a template. You may be better off creating
a custom template.
regards,
Jeromy Evans
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]