Yes, that works perfectly!
A whole lot cleaner too.
Now people will find this in the archives.
Thanks,
Joe
Niall Pemberton wrote:
On 12/19/06, Joseph McGranaghan <[EMAIL PROTECTED]> wrote:
Solved my problem:
ActionContext ac = (ActionContext)context;
ac.setForwardConfig(new ActionForward("/myaction.do"));
If anyone has a cleaner, non-hardcoded my, I'm all ears!
Can you not just do this as one action mapping and specify the forward
on the action?
<action path="/myaction" scope="request"
catalog="mycatalog" command="mychain" forward="tile.myaction">
</action>
Niall
Thanks,
Joe
Joseph McGranaghan wrote:
>
> This should be simple, but for the life of me I can't get find the
> answer.
>
> All I want to do is have a chain execute and then go to an action
> <forward>
>
> Right now it goes through the chain and outputs a blank web page with
> no source code at all.
>
>
>
> struts-config:
>
> <action path="/preprocess_myaction" scope="request"
> catalog="mycatalog" command="mychain">
>
> <forward name="myaction" path="/myaction.do" />
>
> </action>
>
> <action path="/myaction" forward="tile.myaction" />
>
>
>
> chain-config:
>
> <?xml version="1.0" ?>
>
> <catalog name="mycatalog">
> <chain name="mychain">
> <command id="GetSomethingAndPutInRequest"
> className="com.draegoonZ.GetSomethingAndPutInRequest" />
>
> </chain>
>
> </catalog>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]