Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

[S2] validation continue even if there is an error

nodep

2007-08-07

Replies:


Hi, I wrote this xml-file for validation:
<< ...
<validators>
  <field name="nome">
    <field-validator type="requiredstring">
       <message key="requiredstring"/>
    </field-validator>
  </field>
  <field name="indirizzo">
    <field-validator type="requiredstring">
       <message key="requiredstring"/>
    </field-validator>
  </field>
  <field name="comune">
    <field-validator type="requiredstring">
       <message key="requiredstring"/>
    </field-validato>
  </field>
....
...
>>

and it's wrong because there's a tag "field-validator" not closed.
Struts2 doesn't stop the flow and go to my action: for me it's not logic,
it should stop with some error and return to the prev page ...
What do you think?

Stefano :)
--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.