I added an second example to the wiki here http://wiki.opensymphony.com/space/Webwork+-+Why+would+I+use+Action+Chaining%3F

Matthew Payne wrote:

I figured it out. If I want to chain to an action in the same package/namespace, I can just to

...
<result name="success" type="chain">viewJob</result> ...


If I want to chain to an action in a different namespace, I have to set it up like.
...
<result name="success" type="chain">
<param name="actionName">viewJob</param>
<param name="namespace">/jobs</param>
</result> ...


Is this mentioned anywhere on the wiki?

Matthew Payne wrote:

What is the syntax for chaining to an action in a different package?
I know what I have below is wrong.

<package name="schedule" extends="default" namespace="/schedule">
.
.
.
.
.

<action name="cronSchedule" class="org.quartz.ui.web.action.schedule.CronTriggerAction">
<result name="input" type="velocity">/WEB-INF/vm/CreateCronTrigger.vm</result>
<result name="success" type="chain">../job/viewJob</result>
<!-- view job is in /job -->
<result name="error" type="velocity">/WEB-INF/vm/CreateCronTrigger.vm</result>
</action>


</package>

Thanks,

Matt


------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork





------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork





------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to