File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes ajax and struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "ajax and struts2" Watch "ajax and struts2" New topic

ajax and struts2

Rajani Panchumarthy

Joined: Jan 27, 2009
Posts: 22
Struts 2 / Ajax provide a validation of form field ONLY after user click submit button. My concern is how can I make Struts2 / Ajax validate a textfield WHEN user move to another textfield but before click the submit button?
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684


For this use Ajax framework like DWR, JQuery , webparts etc with Struts 2.

Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
David Newton

Joined: Sep 29, 2008
Posts: 12617

Bear in mind that you still need to provide validation on the server side.
subject: ajax and struts2
Similar Threads
null pointer exception in struts2
pass value from struts2 form to javascript
struts2 action
Handling error messages (Struts2 jquery )
Struts2: Server side response.....