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]



Reply via email to