Hmmm... "mapped the extension in struts-config and web-xml'? Mapped how? Here is my web.xml file:
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> <web-app> <!-- Example Database Initialization Servlet Configuration <servlet> <servlet-name>database</servlet-name> <servlet-class>org.apache.struts.example.DatabaseServlet</servlet-class> <init-param> <param-name>debug</param-name> <param-value>2</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> --> <!-- Standard Action Servlet Configuration (with debugging) --> <!-- added no-cache parm. mhn. 3.28.2002 --> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>application</param-name> <param-value>ApplicationResources</param-value> </init-param> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>2</param-value> </init-param> <init-param> <param-name>detail</param-name> <param-value>2</param-value> </init-param> <init-param> <param-name>validate</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>nocache</param-name> <param-value>true</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet> <!-- Standard Action Servlet Mapping --> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <!-- The Usual Welcome File List --> <!-- changed from index.jsp by mhn on 4.3.2002 --> <welcome-file-list> <welcome-file>indexFrame.html</welcome-file> </welcome-file-list> <!-- Example Application Tag Library Descriptor <taglib> <taglib-uri>/WEB-INF/app.tld</taglib-uri> <taglib-location>/WEB-INF/app.tld</taglib-location> </taglib> --> <!-- Struts Tag Library Descriptors --> <taglib> <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri> <taglib-location>/WEB-INF/struts-bean.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri> <taglib-location>/WEB-INF/struts-html.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri> <taglib-location>/WEB-INF/struts-logic.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri> <taglib-location>/WEB-INF/struts-template.tld</taglib-location> </taglib> <!-- added Tiles taglib. mhn 2.13.2002 --> <taglib> <taglib-uri>/WEB-INF/tiles.tld</taglib-uri> <taglib-location>/WEB-INF/tiles.tld</taglib-location> </taglib> <!-- added DHS HTML taglib. mhn 2.28.2002 --> <taglib> <taglib-uri>/WEB-INF/dhs-html.tld</taglib-uri> <taglib-location>/WEB-INF/dhs-html.tld</taglib-location> </taglib> <!-- added Pager taglib. mhn 3.4.2002 --> <taglib> <taglib-uri>/WEB-INF/pager-taglib.tld</taglib-uri> <taglib-location>/WEB-INF/pager-taglib.tld</taglib-location> </taglib> </web-app> And parts of my struts-config.xml file (overall its 600+ lines, didn't want to include the whole bloody thing...) <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"> <!-- This is the Struts configuration file for the VIS Web Access application. --> <struts-config> <!-- ========== Data Source Configuration =============================== --> <!-- <data-sources> <data-source autoCommit="false" description="Example Data Source Configuration" driverClass="org.postgresql.Driver" maxCount="4" minCount="2" password="mypassword" url="jdbc:postgresql://localhost/mydatabase" user="myusername" /> </data-sources> --> <!-- ========== Form Bean Definitions =================================== --> <form-beans> <!-- VIS Logon Form Bean --> <form-bean name="logonForm" type="dhs.vcm.vis.form.LogonForm"/> <!-- Finish Reason Form Bean --> <form-bean name="finishReasonForm" type="dhs.vcm.vis.form.FinishReasonForm"/> <!-- Sucess Content Form Bean --> <form-bean name="" type="dhs.vcm.vis.form.SuccessContentForm"/> </form-beans> <!-- ========== Global Forward Definitions ============================== --> <global-forwards> <forward name="success" path="/indexFrame.html"/> <forward name="welcomePage" path="/indexFrame.html"/> <forward name="finishReasonPage" path="/finishReasonTest.jsp"/> </global-forwards> <!-- ========== Action Mapping Definitions ============================== --> <action-mappings> <!-- VIS Logon action --> <action path="/logon" type="dhs.vcm.vis.action.LogonAction" name="logonForm" scope="session" input="/index.jsp"> </action> <!-- ========================================================================== Visitor Menu options --> <!-- ================================================================= Enter Visitor Action Mappings --> <!-- Display Enter Visitor page action --> <action path="/enterVisitorDisplay" type="dhs.vcm.vis.action.EnterVisitorActionDisplay" name="" scope="session" input="vcmOutlookBar.html" validate="false"> <forward name="enterVisitor" path="/successContent.jsp"/> </action> <!-- cut out portion to save space.... --> <!-- The standard administrative actions available with Struts --> <!-- These would be either omitted or protected by security --> <!-- in a real application deployment --> <!-- removed. mhn 3.12.2002 <action path="/admin/addFormBean" type="org.apache.struts.actions.AddFormBeanAction"/> <action path="/admin/addForward" type="org.apache.struts.actions.AddForwardAction"/> <action path="/admin/addMapping" type="org.apache.struts.actions.AddMappingAction"/> <action path="/admin/reload" type="org.apache.struts.actions.ReloadAction"/> <action path="/admin/removeFormBean" type="org.apache.struts.actions.RemoveFormBeanAction"/> <action path="/admin/removeForward" type="org.apache.struts.actions.RemoveForwardAction"/> <action path="/admin/removeMapping" type="org.apache.struts.actions.RemoveMappingAction"/> --> </action-mappings> </struts-config> TIA, /\/\ark >From: "Galbreath, Mark" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> >Subject: RE: Really Dumb Newbie Question about Extending Action >Date: Wed, 10 Apr 2002 10:31:37 -0400 > >I just assumed (dumb) that he would have mapped the extension in >struts-config and web-xml. > >Mark > >-----Original Message----- >From: Oliver Reflé [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, April 10, 2002 10:29 AM >To: Struts Users Mailing List >Subject: RE: Really Dumb Newbie Question about Extending Action > > >Have you implemente the struts-config manually, or have >you used a tool like XDoclet to generate it ? > >Cause i had the same problems cause XDoclet produces some >errors here. > >Oliver > >-----Original Message----- >From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, April 10, 2002 4:24 PM >To: 'Struts Users Mailing List' >Subject: RE: Really Dumb Newbie Question about Extending Action > > >Try this as a bare minimum: > >package dhs.struts.action; > >import org.apache.struts.action.Action; >import org.apache.struts.action.ActionForm; >import org.apache.struts.action.ActionMapping; >import org.apache.struts.action.ActionForward; > >public class ORGAction extends Action { > public ActionForward execute( > ActionMapping mapping, > ActionForm form, > HttpServletRequest request, > HttpServletResponse response) > throws Exception { > > return mapping.findForward( "success"); > } >} > >Mark > >-----Original Message----- >From: Struts Developer [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, April 10, 2002 9:46 AM >To: [EMAIL PROTECTED] >Subject: RE: Really Dumb Newbie Question about Extending Action > > >Okay, here's my source: > >-----------------start >package dhs.struts.action; > >import org.apache.struts.action.Action ; > >public class ORGAction extends Action { } > >-----------------end > >Mark N. > > > >From: "Galbreath, Mark" <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> > >Subject: RE: Really Dumb Newbie Question about Extending Action > >Date: Wed, 10 Apr 2002 09:29:39 -0400 > > > >dunno...let's see the source of ORGAction(). > > > >Mark > > > >-----Original Message----- > >From: Struts Developer [mailto:[EMAIL PROTECTED]] > >Sent: Wednesday, April 10, 2002 9:20 AM > > > >I would like to add a layer of inheritance between the > >org.apache.struts.action.Action class and my application's Action > >subclasses. > > > >IE: MyAction extends ORGAction extends Action. > > > >Seems simple enough, however when I set this up and run my applicaiton it > >doesn't work. No error messages, no compile errors, no nothing. When > >MyAction extends Action directly the application runs as expected and I >get > >the proper output and log messages, like so: > > > >TIA, > >Mark > > > >-- > >To unsubscribe, e-mail: > ><mailto:[EMAIL PROTECTED]> > >For additional commands, e-mail: > ><mailto:[EMAIL PROTECTED]> > > > > >_________________________________________________________________ >Join the world's largest e-mail service with MSN Hotmail. >http://www.hotmail.com > > >-- >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]> > > >-- >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]> > _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>