struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "struts" <str...@pandora.be>
Subject Re: intRange Validation works but displays always null
Date Thu, 06 Nov 2003 13:13:31 GMT
Untill now no solutions where found for this problem. Anybody has the
solution ?

thx.


Hello Martin,

   change
        <arg0 key="insertData.p_datum_t" />
   to
        <arg0 key="errors.range" />
***************************************************************

MG> Hello togehter,

MG> i have a problem with range validation. I think it is a simple thing but
I
MG> can't get it solved.
MG> I already searched the archive but can't find a solution.
MG> I defined a Form in validation.xml with a field like this:

MG> <field property="p_datum_t" depends="integer,intRange">
MG> <arg0 key="insertData.p_datum_t" />
MG> <arg1 name="intRange" key="${var:min}" resource="false"/> // Tried it
MG> already with name="range"
MG> <arg2 name="intRange" key="${var:max}" resource="false"/>
MG> <var>
MG>   <var-name>min</var-name>
MG>   <var-value>1</var-value>
MG> </var>
MG> <var>
MG>   <var-name>max</var-name>
MG>   <var-value>31</var-value>
MG> </var>
MG> </field>

MG> in Application Resources the entry is:

MG> errors.range=<i>{0}</i> ist nicht im Bereich von {1} bis {2}.

MG> Results in my jsp to message :
MG> Datum ist nicht im Bereich von null bis null

MG> Why does it not Display not Datum ist nicht im Bereich von 1 bis 31?????

MG> Thanks in advance,
MG> Martin Gr√ľneberg




MG> ---------------------------------------------------------------------
MG> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
MG> For additional commands, e-mail: struts-user-help@jakarta.apache.org



Regards,
Dirk

+------- Quality leads ---------------------------------------+
| Dirk Markert                     dirk.markert@dr-markert.de |
| Dr. Markert Softwaretechnik AG                              |
| Joseph-von-Fraunhofer-Str. 20                               |
| 44227 Dortmund                                              |
+---------------------------------->>>>>>> to success! <<<<<<-+


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message