IN my project validation.xml is not working. I am using maven structure and I am new to it. I am using the dependency as struts2 with versionID 126.96.36.199. when I submit the form without entering any data the control is transferred to the result page not the error page. but in the action class I can access all the data from the jsp even though it's null.
The jar files are placed exactly with in the web-inf/lib folder. In web-inf/lib folder i have
Pradeesh Pakkat wrote:The jar files are placed exactly with in the web-inf/lib folder.
"WEB-INF/lib", correct? Case is important.
It looks like there was a problem with JBoss and versions of Struts prior to 2.2.3 see here. You should probably be using the latest version of Struts, 2.3.16. There have been many bug fixes since the 2.2.x days.
Note that the error you posted is at the "WARN" level, so it shouldn't actually impact the application.
Do you have an "input" parameter for your action in struts.xml?
sorry "WEB-INF/lib" is the correct path and I misspelled it. I put those warning message here because I couldn't trace any other issues in the console during validation. And in my struts.xml there is an "input" parameter. There is no error message. From action page it is working normally except the validation.
posted 5 years ago
I tried to use struts 188.8.131.52 but the effect was same as earlier.
It looks like there was a problem with JBoss and versions of Struts prior to 2.2.3 see here.
I think that link is saying about an older version of JBoss. I am using JBoss 7.1 but the bug is there itself. :-( .