aspose file tools*
The moose likes Other Application Frameworks and the fly likes server side validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "server side validation" Watch "server side validation" New topic
Author

server side validation

Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

May i know what are the sucessfull server side validation frameworks in the market to implement in a very big project.


I can be more elobrate of thie scenario.


thanks in advance.
Duc Vo
Ranch Hand

Joined: Nov 20, 2008
Posts: 254
It depends on what types of validation that you want to have. With the information you provide, I would recommend Apache Commons Validator. It will be enough for any "common" validation requirements.


“Everything should be as simple as it is, but not simpler.” Albert Einstein
Mohammed Amine Tazi
Greenhorn

Joined: Feb 09, 2009
Posts: 22
I'll recommand to have a look at web beans. It's easier to use and powerful.


SCJP 5 / SCWCD 5 / SCBCD 5 / SCDJWS 4 / SCDJWS 5 / SCEA 5
Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

aa
Mohammed Amine Tazi
Greenhorn

Joined: Feb 09, 2009
Posts: 22
Effectively, webbeans use notations "@xxx" in methods and is more declarative than programmatic.
Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

Mr. Mohammed Amine Tazi,

please let me know what is your conclusion after seeing the requirement.
Mohammed Amine Tazi
Greenhorn

Joined: Feb 09, 2009
Posts: 22
Which framework you're using (eg. JSF or ...) ?
Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

JSF is being used but the thing i want to use a comman validation framwork for whole application, please see the requreiemt above.


thanks alot
Duc Vo
Ranch Hand

Joined: Nov 20, 2008
Posts: 254
I still recommend commons validator can be used for both front-end validation and bean valiation (i.e. using AOP) with combination of some process flow engine.

Also, can you elaborate this statement

Some may affect the flow of the business process itself; other may produce notifications (be it informative, warnings, or error reports) that need to be routed to either the client or the system/application technical support staff.

Does the process flow requires user input on each process? i.e. can adjust using UI screen flow
Or it is transparent from end users? i.e. have to implement at business logic layer?
Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

Thank you very much Mr Duc,

my main focus is to implement validation framwork in the business tier, ex: validating the leagal status, and validation of 1 attribue, one entity, many attributes , 1 instance, many attributes and instances. like that




Duc Vo wrote:I still recommend commons validator can be used for both front-end validation and bean valiation (i.e. using AOP) with combination of some process flow engine.

Also, can you elaborate this statement

Some may affect the flow of the business process itself; other may produce notifications (be it informative, warnings, or error reports) that need to be routed to either the client or the system/application technical support staff.

Does the process flow requires user input on each process? i.e. can adjust using UI screen flow
Or it is transparent from end users? i.e. have to implement at business logic layer?
this is correct
Duc Vo
Ranch Hand

Joined: Nov 20, 2008
Posts: 254
Rauhl,

You still can use commons validator for validation process in combination of proper Exceptions handling to produce/store informative message to either clients and/or administrators. From your specs, it doesn't seem too complicated to need a workflow engine for business layer, properly just using Strategy partern should do the work, i.e. execute different strategy basing on the validation result -> if the error cannot be handle let it bubbled up and use some error handler technique to round it to the correct place.

Hope it help,

Duc
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: server side validation
 
Similar Threads
client side validation
date validation
client side validation (message deleted I think)
client side validation vs server side validation
difference between and validate() and validation.xml