EJB design: Validation by using Struts1.1
- Posted by: sukhbir bhavra
- Posted on: August 04 2003 07:37 EDT
i was previously using strut1.0 and i was able to trap errors if any field is empty thr. Form Validation.
and errors written in the ApplicationResource file.
But now i shifted to struts1.1 suppose i trap error if field is empty .
No errors r now displayed on the same page when next button is pressed.
I havenot changed my anycode in java files also.
when will be the reason.
Note that Struts-1.0 ApplicationBundle configuration has been deprecated and is replaced by the message-resources tag at struts-config.xml.
Furthermore, method perform( :ActionMapping, :HttpServletRequest, :HttpServletResponse ) :ActionErrors has been deprecated and is replaced by the method execute( ( :ActionMapping, :HttpServletRequest, :HttpServletResponse ) :ActionErrors
So, you probably wanna check the above first. For further information, please refer to http://jakarta.apache.org/struts/userGuide/configuration.html
Hope that works! :)