Thanks, I had read the archive suggested. Unfortunately none of my sub-app <action-mappings> are working. I get the following error when I try to access one of my sub-apps mappings threw http:/host/defaultapp/subapp/mapping.do.
500 Servlet Exception java.lang.ClassCastException: org.apache.struts.action.ActionMapping at org.apache.struts.action.SecureRequestProcessor.processPreprocess(D:/CvsProj ects/StrutsExtTry11/src/org/apache/struts/action/SecureRequestProcessor.java :42) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:227) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452) at javax.servlet.http.HttpServlet.service(HttpServlet.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:103) at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:9 6) at com.caucho.server.http.Invocation.service(Invocation.java:311) at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:221) at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163) at com.caucho.server.TcpConnection.run(TcpConnection.java:137) at java.lang.Thread.run(Thread.java:536) I have configured my parent and sub-app to use the secure plug-in and have configured the <controller> for both apps as follows. <!-- Custom RequestProcessor to handle http/https switching --> <controller processorClass="org.apache.struts.action.SecureRequestProcessor" pagePattern="/WEB-INF/$A$P" forwardPattern="/WEB-INF/$A$P" nocache="true" /> Any ideas are much appreciated, Thanks, Greg -----Original Message----- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 11:10 AM To: Struts Users Mailing List Subject: RE: Implementing sub-apps with WEB-INF hidden jsp's You might try reading this before proceeding. http://www.mail-archive.com/struts-user@jakarta.apache.org/msg38141.html James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the "Open Minded Developer Network" http://www.open-tools.org/struts-atlanta > -----Original Message----- > From: Greg Hess [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 26, 2002 10:44 AM > To: Struts Mail List > Subject: Implementing sub-apps with WEB-INF hidden jsp's > > > Hi All, > > I am trying to take advantage of the new sub-application support > with Struts > 1.1b. There are several developers working on my current project > and we all > have our own modules. This functionality will help us greatly with our > module integration. I am just trying to get up to speed on how to use this > functionality and have read a couple good threads in the archives. I have > followed the simple instructions, basically insert a new config > <init-param> > to the struts <servlet> entry in the web.xml: > > <servlet> > <servlet-name>action</servlet-name> > > <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> > <init-param> > <param-name>config</param-name> > <param-value>/WEB-INF/struts-config.xml</param-value> > </init-param> > <init-param> > <param-name>config/admin</param-name> > <param-value>/WEB-INF/struts-config-admin.xml</param-value> > </init-param> > <init-param> > <param-name>debug</param-name> > <param-value>0</param-value> > </init-param> > <init-param> > <param-name>detail</param-name> > <param-value>0</param-value> > </init-param> > <load-on-startup>3</load-on-startup> > </servlet> > > All my pages are nested within the WEB-INF directory and I have > read that I > need to specify the "pagePattern" and "forwardPattern" in the <controller> > of the struts-config.xml in order to implement sub-apps. The > thread stated I > specify "/WEB-INF/$A$P". > > Could anyone provide an example of this setting and what it is doing, I > cannot find documentation relating to this in the User Guide. > > I am also using the secure plug-in for http/https switching and the > validator plug-in. > > Will all the sub-apps be able to use there own RequestProcessor > or will they > all have to use the SecureRequestProcessor ? > > Will all the sub-apps be able to specify there own validation-rules and > validation.xml eg:validation-rules-adim.xml/validation-admin.xml? > > > Thanks for your time, > > Greg > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>