This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes validate and input attributes in config file not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validate and input attributes in config file not working" Watch "validate and input attributes in config file not working" New topic
Author

validate and input attributes in config file not working

Rajesh Sunil
Greenhorn

Joined: Nov 19, 2009
Posts: 5
Hi All,

I am using struts 1.1, written validation code in validate() of Form class contains some errors and it has to send to some jsp.

Please find below the code.

<action path="/agenda" type="com.adp.pvsweb.action.AgendaAction" name="agendaForm" scope="session" validate="true" input="invalidCharactersError.jsp">
<set-property property="method" value="loadAgenda"/>
<forward name="agenda_en" path="/cpv/agendav.jsp"/>
<forward name="error_en" path="/cpv/error.jsp"/>
</action>

But invalidCharactersError.jsp is not at all calling it is displaying blank page. The file invalidCharactersError.jsp is there in WebContent dir.

Please tell me where i am making mistake.

Thanks
Raj
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: validate and input attributes in config file not working
 
Similar Threads
Getting Http 404 Error while running Strut Application
Question regarding Struts Validator
question regarding the /*.do in STRUTS
Frames in struts
Struts 1.1 problem with form validation