aspose file tools*
The moose likes Struts and the fly likes  struts 2 validator   problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark " struts 2 validator   problem" Watch " struts 2 validator   problem" New topic
Author

struts 2 validator problem

Ben sassi mohammed
Greenhorn

Joined: Nov 28, 2009
Posts: 6
hello
i have problem white struts 2 validator

Tags <s:fielderror> you told me works well. Except that
Now I have duplicate messages (I thought the message "by
Default "no longer present).

please looks attchments

thank you in advance


[Thumbnail for valdator struts.jpg]

Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9293
    
  17

Can you show us the code which you are using. Its hard to tell anything just by looking at the image...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

If you're using an attribute-free <s:fielderror/> tag you'll get the validation messages both from it, and from the Struts 2 form tags--if you're using the default "xhtml" theme.
Ben sassi mohammed
Greenhorn

Joined: Nov 28, 2009
Posts: 6




thank you in advance
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I already answered the question.

Please UseCodeTags for *all* code and configuration, not just bits of it.
Ben sassi mohammed
Greenhorn

Joined: Nov 28, 2009
Posts: 6
thank you for you reply , There is no other solution the The form will now be not good formatting
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

So create your own theme, do it manually, etc. You're the one using the default "xhtml" theme and the attribute-less field error tag; there are other options.
Ben sassi mohammed
Greenhorn

Joined: Nov 28, 2009
Posts: 6
thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts 2 validator problem