File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Advantage - server side validations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Advantage - server side validations" Watch "Advantage - server side validations" New topic

Advantage - server side validations

Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315

what are the advantages of using server side validations ? are they more secure/trusted than a javascript validation ?

David Newton

Joined: Sep 29, 2008
Posts: 12617

Server-side validations are required even *with* client-side validation: users may have JavaScript turned off, a malicious (or simply curious) user may hand-craft requests either in the browser's URL bar or via some other means, and so on. *Any* data received by the server must be validated.
I agree. Here's the link:
subject: Advantage - server side validations
It's not a secret anymore!