You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Martin Grüneberg <ma...@active-group.de> on 2003/10/15 17:15:10 UTC
intRange Validation works but displays always null
Hello togehter,
i have a problem with range validation. I think it is a simple thing but I
can't get it solved.
I already searched the archive but can't find a solution.
I defined a Form in validation.xml with a field like this:
<field property="p_datum_t" depends="integer,intRange">
<arg0 key="insertData.p_datum_t" />
<arg1 name="intRange" key="${var:min}" resource="false"/> // Tried it
already with name="range"
<arg2 name="intRange" key="${var:max}" resource="false"/>
<var>
<var-name>min</var-name>
<var-value>1</var-value>
</var>
<var>
<var-name>max</var-name>
<var-value>31</var-value>
</var>
</field>
in Application Resources the entry is:
errors.range=<i>{0}</i> ist nicht im Bereich von {1} bis {2}.
Results in my jsp to message :
Datum ist nicht im Bereich von null bis null
Why does it not Display not Datum ist nicht im Bereich von 1 bis 31?????
Thanks in advance,
Martin Grüneberg
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: intRange Validation works but displays always null
Posted by struts <st...@pandora.be>.
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
Re: intRange Validation works but displays always null
Posted by Dirk Markert <di...@dr-markert.de>.
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