How do i deploy an extended ActionMapping in Struts 1.1 ?
i.e. a class derived from org.apache.struts.action.ActionMapping
with additional fields for properties set by  <set-property/>
tags in my struts-config.xml file.
With Struts 1.0 this was working fine by declaring a
<init-param>
  <param-name>mapping</param-name>
  <param-value>NameOfMyExtendedActionMappingClass</param-value>
</init-param>
in the <servlet/>-Element used to deploy my 
org.apache.struts.action.ActionServlet in my web.xml file.
However, Struts 1.1 seems to ignore this <init-param/>
and simply passes an ActionMapping to my Actions' execute methods. 
Consequently Java throws a ClassCastException when i try
to cast the passed mapping-Object back to my Class-type.
any help would be greatly appreciated.
 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to