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
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: 689


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.
I agree. Here's the link:
subject: ajax and struts2
It's not a secret anymore!