The following issue has been updated:
Updater: David Chisholm (mailto:[EMAIL PROTECTED])
Date: Thu, 20 Mar 2003 4:32 PM
Comment:
This xdt contains the customization I made to support DispatchActions. I'm very new to
editing XDTs, and so the fix is probably not the most elegant way to do this. Also,
it's not meant to be a long-term fix for the problem; just an example of what I had to
do to workaround the issue.
Changes:
[Attachment] [struts_config_xml.xdt] was added
---------------------------------------------------------------------
For a full history of the issue, see:
http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-396&page=history
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-396
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XDT-396
Summary: struts_config_xml_xdt doesn't support DispatchActions
Type: Bug
Status: Assigned
Priority: Minor
Time Spent: Unknown
Estimate: 0 minutes
Project: XDoclet
Component: Apache Module
Versions:
1.2 Beta 2
Assignee: xdoclet-devel (Use for new issues)
Reporter: David Chisholm
Created: Thu, 20 Mar 2003 4:28 PM
Updated: Thu, 20 Mar 2003 4:32 PM
Environment: Windows XP, JDK 1.4.1.01, Ant 1.5.1
Description:
I am unable to get the struts module to generate an action mapping for Actions that
extend the Struts DispatchAction. I had to duplicate the xdt's action-mapping section
and explicitly select classes of type org.apache.struts.actions.DispatchAction. This
is very strange given that DispatchAction extends Action.
In my system, I have classes that extend a custom BaseAction which in turn extends
Action. The struts module worked fine on these classes.
I also have classes that extend a custom BaseDispatchAction which in turn extends
DispatchAction, and the struts module does not recognize these classes.
I changed the classes to extend DispatchAction directly and had the same result.
I changed the classes to extend Action, and it *worked*.
Once I customized the xdt, and added a section for DispatchAction, the struts module
worked with the classes that extended my custom BaseDispatchAction.
Btw, I was happy to discover that I could enter several @struts.action tags in my
DispatchAction classes, and the struts module would generate an action mapping for
each - a very convenient result for dispatch actions. Thank you very much!
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/xdoclet/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.net email is sponsored by: Tablet PC.
Does your code think in ink? You could win a Tablet PC.
Get a free Tablet PC hat just for playing. What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel