Accessing local properties file in Struts validator
Sorry if it's not the right forum to ask. But if someone can help me on using Struts Validator. I just started to use it, and I'd like to validate the date input
against certain pattern. But I don't want to use a fix pattern like dd/MM/yyyy or
whatsoever...
My goal is to validate agains the local date pattern in my local properties file. So, if in my properties file, I have:
datePattern=dd/MM/yyyy
in my struts validator, I'd like to have
<field property="txtDate" depends="date">
<arg0 key="date"/>
<var>
<var-name>datePattern</var-name>
<var-value>?</var-value>
</var>
</field>
What do I need to put in ?
Thanks

