Hi!
I have a problem regarding server side validation.I work on a project that needs server side validation.The problem is that we need the validation rules in an external file so that we can manipulated later.It will ne better and faster.
Thank you and a solution will be grate!
Anka
-
Server side validation!!! (2 messages)
- Posted by: Anka Tabaras
- Posted on: June 06 2004 12:48 EDT
Threaded Messages (2)
- Server side validation!!! by Paul Strack on June 06 2004 21:49 EDT
- Server side validation!!! by Arun Nair on June 07 2004 07:35 EDT
-
Server side validation!!![ Go to top ]
- Posted by: Paul Strack
- Posted on: June 06 2004 21:49 EDT
- in response to Anka Tabaras
Try looking at Apache's Validator framework:
http://jakarta.apache.org/commons/validator/
It can be used with Struts or independently. -
Server side validation!!![ Go to top ]
- Posted by: Arun Nair
- Posted on: June 07 2004 07:35 EDT
- in response to Anka Tabaras
Might be helpful to have a set of small class to load the property/rule file and the serverside classes (including EJB) access them thru a Rule Manager.
[Singleton impl]
Like session bean request RuleManager to get the rule when validating. And also the Rule manager is intelligent enough to get update himself when a rule changes. You could use a self-triggering Thread in every n second.
-arun