Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Validation for server side components not for web tier

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm looking out for a server side validation component which would take care of validation.I'm not talking of the struts validator framework as it takes request in the method params which i'm not looking out for.Struts validator only takes care of web tier.So is anyone aware of any such framework or any component.The resaon i'm asking is the my server side code has become too clumsy and some of my classes has readched the length of 17000 lines which is quiet bad in linees of OO programming.SO please do suggest.
 
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not think that there can be any framework for server side validation.Server side code deals with business logic and business data and that varry from application(product) to application.

And the struts validation framework came as because it does client side validation of fields and most of the application would have more somewhat same requirement of validation and there is a chance for code reuse.
 
Santy Shetty
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey thanks rahul first of all.you are correct,I was searching for it all over the net.I'm looking out for this component because my services layer can be called from anywhere either web or mobile etc.Thats the reason I need the validation in the services layer.so any suggestions from your side.
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Santy Shetty:
hey thanks rahul first of all.you are correct,I was searching for it all over the net.I'm looking out for this component because my services layer can be called from anywhere either web or mobile etc.Thats the reason I need the validation in the services layer.so any suggestions from your side.



But the problem here is again the same.

Can you site an example as what kind of validation in service are you talking about ?
 
The knights of nee want a shrubbery. And a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!