This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
I agree. Here's the link:
subject: ajax and struts2
Similar Threads
struts2 action
Handling error messages (Struts2 jquery )
null pointer exception in struts2
pass value from struts2 form to javascript
Struts2: Server side response.....