Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

server side validation

 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mohammed Amine Tazi
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll recommand to have a look at web beans. It's easier to use and powerful.
 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
aa
 
Mohammed Amine Tazi
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Effectively, webbeans use notations "@xxx" in methods and is more declarative than programmatic.
 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mr. Mohammed Amine Tazi,

please let me know what is your conclusion after seeing the requirement.
 
Mohammed Amine Tazi
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which framework you're using (eg. JSF or ...) ?
 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic