Wednesday, February 27, 2008

How to identify the Input error in Struts2

Hi I'm getting input error when i submit the page . How i can identify the error and solve this.
The issues comes with check box.

tnx

  • Reply 1.

You can identify the error by adding a result tag named as input to ( result name="input") "-pages/xxx.jsp-"
and add a s:fieldError to that xxx.jp

thus , when you submit the data it will show the error on the xxx.jsp page.


  • Reply 2.
Thanks . It works and i got the error , it was assigning a int value to check box.
It is really easy to get an idea about the error with this.

No comments: