| Author |
Module and Validation Framework (path error)
|
Chris Wimmer
Greenhorn
Joined: Aug 18, 2005
Posts: 5
|
|
Hi, I am running Tomcat 5.5 with Struts 1.2.8 and I want to use modules and the Struts validation framework. Additional I want that my JSP pages are private that means not directly callable from the user. Therefore I put them inside the WEB-INF directory beneath my web application in directory "/WEB-INF/pages/archivewizard". The web application has more steps to collect data and at the end the data is saved (wizard). Now I've a big problem especially with the validation framework. I've a module called "wizard" and a corresponding wizard-config.xml file. In the main JSP-page this wizard is started with: <html:link module="/wizard" page="/startArchiveCreate.do">Create wizard</html:link> The wizard works very well (next, previous, cancel), but if an validation error occures the JSP page navigated to can not be found! The tomcat error message is: type Status report message /wizard/WEB-INF/pages/archivewizard/EnterName.jsp description The requested resource (/wizard/WEB-INF/pages/archivewizard/EnterName.jsp) is not available. The used path is not correct (the preceeding /wizard) and it differs from the input-path. Why can the JSP page not be found after validation, but during input? --------------------------------------------------------------------------------- The wizard-config.xml file contains the following action-mapping: <action-mappings> <action path="/default" type="com.opentext.struts.action.SuccessAction" > <forward name="success" path="/Welcome.do" contextRelative="true" redirect="true" /> </action> <action path="/startArchiveCreate" type="com.opentext.struts.action.SuccessForwardAction"> <forward module="" name="success" path="/WEB-INF/pages/archivewizard/EnterName.jsp" contextRelative="true" redirect="false" /> </action> <action path="/typeStoreFwd" type="org.apache.struts.actions.ForwardAction" parameter="/WEB-INF/pages/archivewizard/TypeStore.jsp" /> <action path="/storageSystemContainerFwd" type="org.apache.struts.actions.ForwardAction" parameter="/WEB-INF/pages/archivewizard/StorageSystemContainer.jsp" /> <action path="/storageSystemSingleFwd" type="org.apache.struts.actions.ForwardAction" parameter="/WEB-INF/pages/archivewizard/StorageSystemSingle.jsp" /> <action path="/settingsFwd" type="org.apache.struts.actions.ForwardAction" parameter="/WEB-INF/pages/archivewizard/Settings.jsp" /> <action path="/archiveOverviewFwd" type="org.apache.struts.actions.ForwardAction" parameter="/WEB-INF/pages/archivewizard/ArchiveOverview.jsp" /> <action path="/errorFwd" type="org.apache.struts.actions.ForwardAction" parameter="/WEB-INF/pages/common/error.jsp" /> <!-- create archive wizard --> <action path="/enterName" type="com.opentext.struts.action.CreateArchiveWizardAction" name="createArchiveWizardForm" attribute="archivewizard" scope="session" input="/WEB-INF/pages/archivewizard/EnterName.jsp" validate="true"> <forward name="next" path="/wizard/typeStoreFwd.do" contextRelative="true" /> <forward name="cancel" path="/wizard/default.do" contextRelative="true" /> <forward name="failure" path="/wizard/errorFwd.do" contextRelative="true" /> </action> .... </action-mappings> --------------------------------------------------------------------------------- Thanks Chris
|
 |
 |
|
|
subject: Module and Validation Framework (path error)
|
|
|