• 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

Struts validation (annotations)

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all!

I have a question that I would like to do

I have a web application. I have some forms and I would like validate it using 'validations'. I'm using Struts frameworks with annotations but I have a problem when I use 'validations' and down list in Struts, I mean...

For example if I have a field text I have no problems to validate it. I do the following:

form.jsp


ActionClass


This code works ok.

But if I try to do something similar with down list it does not work! . This is how I have done:

form.jsp


ActionClass


Also I have tried to use other kind of validations like:

RequiredFieldValidator Annotation
StringLengthFieldValidator Annotation
...

But it does not work

Any advice? Thanks for all!

PS: Once again, sorry for my English.

-Samuel-
 
Ranch Hand
Posts: 122
Mac IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmmm Arent you missing name="busco_ofrezco" in the s:select tag.

-Lucas
 
Samuel Castillo Romero
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
[quote=Lucas Mireles]Hmmm Arent you missing name="busco_ofrezco" in the s:select tag.

-Lucas[/quote]

Maybe I did not understand what you say but I think the form is okay.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic