I'm not sure if this applies to the chain result, but you could give
it a shot: 
http://struts.apache.org/2.1.6/docs/parameters-in-configuration-results.html

Nils-H

On Wed, Apr 22, 2009 at 6:36 AM, satyanarayana katta
<saty.pra...@gmail.com> wrote:
> Hi All,
> I have a Action class
>
> class BaseAction extends ActionSupport {
>    private Sting data;
>
>    public void getData() {
>        return this.data;
>    }
>
>   public String setData(String data){
>       this.data = data;
>   }
> }
>
> class Action extends BaseAction{
>    public String execute() throws Exception {
>        System.out.println(getData());
>        setData("abc");
>        return "chain";
>    }
>
>    public String executeChain() throws Exception {
>        System.out.println(getData());
>        return "success"
>    }
> }
>
> xml configuration:
>
> <action name="test" class="Action">
> <result name="chain">test2</result>
> </action>
>
> <action name="test2" class="Action" method="execute1">
> <result name="chain"></result>
> </action>
>
>
>
> http://localhost:8080/test/test.action?data=ball
>
> Output of execute:  ball
> Output of execute1:  ball
>
> I am expecting the out of execute1 as "abc"
>
> Am I missing something please help me resolve the issue.
>
> Rgds,
>
> Satya
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to