You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by userxxx <fi...@googlemail.com> on 2011/04/20 13:09:20 UTC
common validator combine constants / constant-name
Hello,
I want to to mix constants in the common-validator
I Use struts 1.2.9 and common-validator 1.3.1 on weblogic 10.3.2.0
Here is a simple example:
validation.xmlfinalposter@googlemail.com
[...]
<constant>
<constant-name>K_alpha</constant-name>
<constant-value>[A-Z]</constant-value>
</constant>
<constant>
<constant-name>K_num</constant-name>
<constant-value>[0-9]</constant-value>
</constant>
<constant>
<constant-name>K_alpha_num</constant-name>
<constant-value>(${K_alpha}|${K_num})</constant-value>
</constant>
<constant>
<constant-name>mask_alpha_num</constant-name>
<constant-value>^${K_alpha_num}+$</constant-value>
</constant>
[...]
validation-form.xml
[...]
<var>
<var-name>mask</var-name>
<var-value>${mask_alpha_num}</var-value>
</var>
[...]
Using this mask mask_alpha_num does not work.
Is it not possible to combine the constants K_alpha and K_num to a new
constant?
--
View this message in context: http://struts.1045723.n5.nabble.com/common-validator-combine-constants-constant-name-tp4315495p4315495.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org