Ummm, yes! :))
Its a very handy feature, obviously.
Erik
Hani Suleiman wrote:
Oooh, do all the subtasks accept templateFile? That'd make working on
templates and tweaking them SO so much less painful!
On Wednesday, October 30, 2002, at 11:56 AM, Erik Hatcher wrote:
In short, you can't.
But, here's a bit of troubleshooting trivia that folks can use to
answer these questions themselves (just my nature of educating while
answering a question).
I drilled into XDoclet's CVS code (maybe not the exact latest
version) modules/apache/src/xdoclet/modules/apache/struts/resources/
struts_config_xml.xdt and found this:
<XDtClass:forAllClassTags tagName="struts:action-forward">
<forward
<XDtClass:ifHasClassTag tagName="struts:action-forward"
paramName="className">
className="<XDtClass:classTagValue tagName="struts:action"
paramName="className"/>"
</XDtClass:ifHasClassTag>
<XDtClass:ifHasClassTag tagName="struts:action-forward"
paramName="contextRelative">
className="<XDtClass:classTagValue tagName="struts:action"
paramName="contextRelative"/>"
</XDtClass:ifHasClassTag>
name="<XDtClass:classTagValue tagName="struts:action-forward"
paramName="name"/>"
path="<XDtClass:classTagValue tagName="struts:action-forward"
paramName="path"/>"
redirect="<XDtClass:classTagValue
tagName="struts:action-forward" paramName="redirect" default="false"
values="true,false"/>"
/>
</XDtClass:forAllClassTags>
So you can see (through the mess of XDoclet tags) that there is no
<set-parameter>. Also, I spotted what seems to be a bug with the
contextRelative setting - notice two className's! :/ So I'll fix
that while I'm in here I think, even though I don't personally
generate Struts action mappings (yet, but perhaps in the future I will).
But if you'd like to make this template more robust, patches are
gladly accepted! One thing you could do is copy this .xdt file to
your local system, tweak it, and in the <strutsconfigxml> subtask
specify templateFile="your_struts_config_xml.xdt" and try out some
template tweaks to get it right.
Erik
[EMAIL PROTECTED] wrote:
Hello,
I am trying to find out the correct tags to achieve the following:
<forward name="OK_Company"
path="/secured/RoleList.jsp" redirect="false">
<set-property property="action" value="OK" />
</forward>
I have tried the following:
@struts:action-forward name="DisplayPage"
path="/secured/RoleList.jsp"
How do I manage to do the set-property??
Regards,
Stephen.
x 5125
----------------------------------------------------------------------
---------------------
Copyright material and/or confidential and/or privileged information
may be contained in this e-mail and any attached documents. The
material and information is intended for the use of the intended
addressee only. If you are not the intended addressee, or the
person responsible for delivering it to the intended addressee, you
may not copy, disclose, distribute, disseminate or deliver it to
anyone else or use it in any unauthorised manner or take or omit to
take any action in reliance on it. To do so is prohibited and may be
unlawful. The views expressed in this e-mail may not be official
policy but the personal views of the originator. If you receive
this e-mail in error, please advise the sender immediately by using
the reply facility in your e-mail software, or contact
[EMAIL PROTECTED] Please also delete this e-mail and all
documents attached immediately. Many thanks for your co-operation.
BMW Financial Services (GB) Limited is registered in England and
Wales under company number 01288537.
Registered Offices : Europa House, Bartley Way, Hook, Hants, RG27 9UF
----------------------------------------------------------------------
--------------------
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user