facebook

Wrong XDoclet Tags in Struts-Action classes (forwards)

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #215082 Reply

    mika
    Member

    Hi,

    We’re generating the strutsconfig.xml with xdoclet. Since MyEclipse’s Struts editor puts XDoclet tag into the generated Struts action classes, I’m using it to create the “skeletons”.

    The Problem:
    The name attribute of the XDoclet tag generated for struts action-forwards is wrong; the forward tag is generated like this:

    @struts:action-forward
      name="/someForwardAction.do"
      path="/someForwardAction.do"

    instead of:

    @struts:action-forward
      name="forwardName"
      path="/someForwardAction.do"

    I think, it’s somewhere in a template for new Action classes, so I’d appreciate if you could point me to that template; otherwise I have to adjust all the tag by hand.

    Thanks in advance,
    mika

    #215096 Reply

    support-michael
    Keymaster

    This is definitely bug that will be fixed in next week’s 3.8.2 release. I just updated the codebase with a fix. Note that we do plan to expose all templates for user customization. But I don’t know the priority for this capability at this time.

    #215854 Reply

    mika
    Member

    Hi again!

    First, sorry about my incomplete posting… next time I’ll use the “Insert” button and provide all the infos.

    Second, I’ve noticed further problems with the XDoclet tag generation. When just creating a new action using the wizard without specifying a form not even the the path-attribute (xdoclet) is created. I suppose it’s all about the templates… ?!

    BTW: I’m running eclipse 3.0 / me 3.8.1+QF20040825 on Linux (gtk2).

    Cheers,
    mika

    #215855 Reply

    mika
    Member

    Hi again!

    First, sorry about my incomplete posting… next time I’ll use the “Insert” button and provide all the infos.

    Second, I’ve noticed further problems with the XDoclet tag generation. When just creating a new action using the wizard without specifying a form not even the the path-attribute (xdoclet) is created. I suppose it’s all about the templates… ?!

    BTW: I’m running eclipse 3.0 / me 3.8.1+QF20040825 on Linux (gtk2).

    Cheers,
    mika

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Wrong XDoclet Tags in Struts-Action classes (forwards)

You must be logged in to post in the forum log in