Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

usage of constant in validation-rules in custom validator

fea jabi

2007-02-12


Created a custom validator.

I have created a constant in validation-rules.xml
<constant>
 <constant-name>alpha_num</constant-name>
 <constant-value>^[a-zA-Z0-9]*$</constant-value>
</constant>


Is it possible to use the this constant in my custom validator I created.

If so, how to use it?


Also, Is it possible to get message from the MessageResource.properties.
If so, How to get the message too from the customer validator?



Thanks.

_________________________________________________________________
From predictions to trailers, check out the MSN Entertainment Guide to the
Academy Awards?
http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.