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

struts2: howto ajax-validate with annotation?

Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
does anyone have an example of ajax-validation with annotation?

I'm trying to achieve the following: I have a form with:

1. Name
2. DOB
3. e-mail

[Update Button]

Name/e-mail are mandatory fields. Right now, if the user clicks Update and everything goes well - a Success Message is shown in the target ID.

If the user doesn't provide the Name - An error message is shown: "Update Fail"

Problem is that in my output, in case of a failure, there is no indication of the required field (what is the problem).

So my question is this: how can I tell which of the fields is missing?

* I'm using annotation in my form

I agree. Here's the link:
subject: struts2: howto ajax-validate with annotation?
Similar Threads
struts2 with ajax: howto return a value to div?
Caching is not working
not able to catch exceptions from jsp page
S2: caching problem,-user clicks on a link and then back w/ broweser data is lost
"Edit in Place" Using Simple JS