• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

struts2: howto ajax-validate with annotation?

 
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic