Hi,

I have problem with type attribute of action in struts-config.xml...

In my application I have the following action class structure:

/**
 * @struts.action path="/parentAction1" name="ParentForm2"...
 *              
 * @struts.action path="/parentAction2" name="ParentForm2"...
 */
public class ParentAction extends Action {}

/**
 * @struts.action path="/childAction" name="ChildForm"...
 */
public class ChildAction extends ParentAction {}


The struts-config.xml file generated by XDoclet than looks like this:

<action 
  path="/childAction"
  type="my.package.action.ChildAction"
  .../>

<action 
  path="/parentAction1"
  type="my.package.action.ChildAction"
  .../>

<action 
  path="/parentAction2"
  type="my.package.action.ParentAction"
  .../>


Type of parentAction1 is wrongly set as "my.package.action.ChildAction".
When I try to get "/parentAction1.do" ChildAction code is executed,
which usually fail on ClassCastException.
Have anyone met this problem before?

Thanks,

Jaroslav Cibulka

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to