struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xniit2003 <>
Subject Re: Required validator dosen't work
Date Fri, 07 Dec 2007 14:08:21 GMT

Here's my code :-

in struts.xml file :-

<action name="editChannelGroup"
        <interceptor-ref name="validationWorkflowStack"/>            

in jsp :-

<s:textfield id="channelGroupTO.assocAppID"  required="true"
name="channelGroupTO.assocAppID" theme="simple" size="8"

in validation xml :-

<field name="channelGroupTO.assocAppID">
      <field-validator type="required">
          <message>app id should not be null</message>


Here "channelGroupTO" is a transfer object, which I am referencing in Action
class. So all the values get populated automatically. "assocAppID" is a long
attribute. Actually I used "required" type for every data type, but in any
case it doesn't work!!. I am facing this error for many days. Can anybody
successfully use 
"required" type now?

Gary Affonso wrote:
> xniit2003 wrote:
>> Have anybody successfully used "required" validator.
> Yes.
> One thing to note about validation is that it *won't* automatically 
> short-circuit if you're not using the workflow interceptor.  Without 
> that interceptor validation can fail and your action's execute method 
> will still get called (with that interceptor, validation failures will 
> trigger an "INPUT" response type and your action's execute will not get 
> called).
> If that's not it, post some more detail about how you're using it.
> - Gary
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message