[2004/09/15 13:59:49] Parsing error processing resource path /WEB-INF/struts-config.xml
javax.servlet.UnavailableException: Parsing error processing resource path /WEB-INF/struts-config.xml
at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:739)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:715)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:670)
Perhaps I'm a little too close to the cutting edge here?! Any other ideas on how I can get this to work?
J
David G. Friedman wrote:
I think like so: (Per my Stuts In Action reference pages)
<action-mappings> <action path="/Date/SampleView" type="cnwk.camaro.MasterAction" scope="request"> <forward name="success" className="cnwk.camarao.CustomerActionForward" path="/WEB-INF/pages/SampleView.jsp" /> </action> </action-mappings>
I'm thinking that without it, how would the Action config know to cast it as anything other than a ForwardAction instead of a subclass when you call findFoward(...) ?
Regards, David
-----Original Message----- From: John Crossman [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 4:02 PM To: Struts Users Mailing List Subject: Re: CustomActionForward -- How do I pick it up in the Action?
What exactly would that look like?
J
David G. Friedman wrote:
Doesn't your Action's nested forward need the attribute "classname=SOMETHING" ?
Regards, David
-----Original Message----- From: John Crossman [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 3:47 PM To: Struts Users Mailing List Subject: CustomActionForward -- How do I pick it up in the Action?
My struts-config has the following:
<global-forwards type="cnwk.camaro.CustomActionForward"> <forward name="DateFormat" path="/do/Date/SampleView" > <set-property property="commands" value="stuff" /> </forward> </global-forwards>
<action-mappings> <action path="/Date/SampleView" type="cnwk.camaro.MasterAction" scope="request"> <forward name="success" path="/WEB-INF/pages/SampleView.jsp" /> </action> </action-mappings>
And yet the following causes ClassCastException in my MasterAction class:
CustomActionForward customForward = (CustomActionForward) mapping.findForward( DEFAULT_VIEW_KEY );
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]