You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nuno Maia <nu...@netvisao.pt> on 2003/01/02 05:27:21 UTC

Validator Error

Validator (structs 1.1 B3) gives me an error with the this configuration
in validator.xml

<form-validation>

   <formset>
      <form name="newsletterForm">
         <field property="firstName"
depends="required,mask,minlength,maxlenght">
            <arg0 key="label.firstname"/>
         <arg1 name="minlength" key="${var:minlength}"
resource="false"/>
            <arg2 name="maxlength" key="${var:maxlength}"
resource="false"/>
                <var>
                    <var-name>mask</var-name>
                    <var-value>^\w+$</var-value>
                </var>
                <var>
                    <var-name>minlength</var-name>
                    <var-value>2</var-value>
                </var>
                <var>
                    <var-name>maxlength</var-name>
                    <var-value>30</var-value>
                </var>
         </field>    
    </form>        
   </formset>   

</form-validation>



RE: Validator Error

Posted by James Turner <tu...@blackbear.com>.
depends="required,mask,minlength,maxlenght"

Perhaps it wouldn't if you spelled maxlength correctly.

Been there, done that too :-)

James

> -----Original Message-----
> From: Nuno Maia [mailto:nunomaia@netvisao.pt] 
> Sent: Wednesday, January 01, 2003 11:27 PM
> To: struts-user@jakarta.apache.org
> Subject: Validator Error
> 
> 
> Validator (structs 1.1 B3) gives me an error with the this 
> configuration in validator.xml
> 
> <form-validation>
> 
>    <formset>
>       <form name="newsletterForm">
>          <field property="firstName" 
> depends="required,mask,minlength,maxlenght">
>             <arg0 key="label.firstname"/>
>          <arg1 name="minlength" key="${var:minlength}" 
> resource="false"/>
>             <arg2 name="maxlength" key="${var:maxlength}" 
> resource="false"/>
>                 <var>
>                     <var-name>mask</var-name>
>                     <var-value>^\w+$</var-value>
>                 </var>
>                 <var>
>                     <var-name>minlength</var-name>
>                     <var-value>2</var-value>
>                 </var>
>                 <var>
>                     <var-name>maxlength</var-name>
>                     <var-value>30</var-value>
>                 </var>
>          </field>    
>     </form>        
>    </formset>   
> 
> </form-validation>
> 
> 
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Repeating SessionID (newbie)

Posted by Loren Hall <lo...@attbi.com>.
My project login procedures are recycled from the struts-example code.

I'm finding that the same sessionID e.g. BFDDDC81ECBFC3720ACB48FED74B970A is
being assigned to every session when I have simultaneous logins with
different users.

End result, the session-scope bean retrieval grabs the wrong UserView, (or
perhaps the only one remaining)


Any thoughts as to what could cause the sessionID to repeat like this are
greatly appreciated?

thanks in advance,
Loren

[American Airlines saved $40,000 in 1987 by eliminating one olive from each
salad served in first-class.]



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>