I have done stuff like that. In my case I had two action entries in
struts.xml each one defining a form. Both of these mapped to the same
action class.
Just make sure they have unique paths
We come from the land of the ice and snow
With the midnight sun, where the hot springs glow
The
In your Form/Action you specify a property for
ActionErrors:
String property=FormOne;
ActionErrors errors = ...;
ActionError error = ...;
errors.add(property, error);
In your jsp you use the Struts html:messages tag
with the property attribute:
html:messages property=FormOne id=msg
...
2 matches
Mail list logo