1

I have a form with struts tag, i wanted to perform validation on this form, so i created coressponding actionname-validation.xml file with actionname-properties file, the problem is that the error message done in xml file is not shown. I have checked the struts.xml file, it's fine. But i don't know what is wrong?? Can anyone help me??

Binay
  • 149
  • 1
  • 3
  • 12
  • Follow this [link](http://struts.apache.org/2.1.6/docs/client-validation.html) it would help you to solve – thar45 Oct 12 '12 at 05:03
  • Describe a bit more your problem please. What theme are you using? Default theme? Is Struts2 executing the validation even it doesn't shows the messages? Is it showing a error with *there isn't action mapped with result input*? – Pigueiras Oct 12 '12 at 07:50
  • 1
    Try to put `` tag to your page. Do you see messages after that? – Aleksandr M Oct 12 '12 at 08:32
  • I have placed in my form too, but it won't get displayed also, i have tried placing in my form, this also doesn't displays the validation message. – Binay Oct 12 '12 at 09:32
  • 1
    @Binay Could you show us some code snippets. It is very difficult to guess w/o seeing actual code. – Aleksandr M Oct 12 '12 at 10:06
  • @Pigueiras Yes i have mapped the action with result name "input" to the same page of form – Binay Oct 12 '12 at 10:25
  • @Binay Edit your question to put more info. Don't use the comments :-) – Pigueiras Oct 12 '12 at 10:27
  • Guys i don't know what was wrong...but i tried non-field validation, and it worked..anyways, thanks for ur help..:) – Binay Oct 12 '12 at 10:37

0 Answers0