Chen, Gin wrote:
Is there a way to validate a date against today's date?
I can validate that a date is entered in a desired format but I'm not sure how to validate that it is = to or > then today's date using just the validation.xml.
Disclaimer: this might not work, depending on whether validator.xml is loaded once when the webapp is loaded by the container, or whether it is checked each time. (It won't work if it's parsed/loaded only once.)
You could create a servlet that simply returns the current date, and then in the validator.xml have an external entity pointing to the URL of the servlet so that when validator.xml is parsed, this value is fetched from the URL and inserted into the document.
Hey give me a break it's Friday and I'm trying to be creative ;)
Erik
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

