ItwasJJsmile
ItwasJJsmile

Reputation: 109

Validate a form by using jQuery or struts2

I'm wondering if jQuery is enough for validation (eg: validate a login form.) Why we use Struts2 to do this?

Regards Liam

Upvotes: 0

Views: 734

Answers (2)

Jorge
Jorge

Reputation: 18237

It is not a recipe but for security reasons, you should validate your application from the server and the cliente side

in this question that i made speak about some points of security. So hopefully read this to get some considerations for client and server side validations

Upvotes: 3

74H1R
74H1R

Reputation: 3514

I agree with Jorge. You must do server side validation. Because your script based validation can be bypassed if user disable JavaScript in their browser. So server side validation always useful.

Upvotes: 1

Related Questions