The following comment has been added to this issue:

     Author: Andrew Stevens
    Created: Fri, 11 Feb 2005 6:42 PM
       Body:
Can you attach an example demonstrating the problem?
Given you quoted

 **/
 *
 * @struts:action path="/saveService" scope="request" name="serviceForm" 
input="input"
 * @struts:action-forward name="success" path="/listservices.jpt"
 * @struts:action-forward name="input" path="/editService.do"
 */ 

above, which isn't a valid javadoc comment (should be /** not **/), please 
double check the "dot" form doesn't have some other typo.
---------------------------------------------------------------------
View this comment:
  
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1262?page=comments#action_15957

---------------------------------------------------------------------
View the issue:
  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1262

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-1262
    Summary: Inconsistent behavior: 'struts:' vs 'struts.'
       Type: Bug

     Status: Open
   Priority: Minor

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: XDoclet
 Components: 
             Apache Module
   Versions:
             1.2.2

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Arjan Molenaar

    Created: Fri, 4 Feb 2005 2:09 AM
    Updated: Fri, 11 Feb 2005 6:42 PM
Environment: Win32, XDoclet 1.2.2 on Eclipse 3.0 (using Eclipse's Ant).

Description:
I noticed some inconsistency while using @struts tags.

E.g.

 **/
 *
 * @struts:action path="/saveService" scope="request" name="serviceForm" 
input="input"
 * @struts:action-forward name="success" path="/listservices.jpt"
 * @struts:action-forward name="input" path="/editService.do"
 */
public final class SaveServiceAction extends GenericSaveAction
{
...
}

Generates the following struts-config XML:

    <action
      path="/saveService"
      type="nl.yirdis.brainz.web.actions.SaveServiceAction"
      name="serviceForm"
      scope="request"
      input="input"
      unknown="false"
      validate="true"
    >
      <forward
        name="success"
        path="/listservices.jpt"
        redirect="false"
      />
      <forward
        name="input"
        path="/editService.do"
        redirect="false"
      />
    </action>

Which is good, but if I use struts. (dot) instead of the semicolon notation I 
get

    <action
      path="/saveService"
      type="nl.yirdis.brainz.web.actions.SaveServiceAction"
      name="serviceForm"
      scope="request"
      input="input"
      unknown="false"
      validate="true"
    >
      <forward
        name="success"
        path="/listservices.jpt"
        redirect="false"
      />
    </action>

Instead. Only the first action forward is generated.

The Hibernate xdoclet mappings for example behave well when using '@hibernate.'.




---------------------------------------------------------------------
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/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to