Re: Forward a action from one action programmatically in STruts 2.0

2007-03-20 Thread arunkumar S
Hi Rene, It works.Thanks Regards, Arun. Maybe this is the option you are searching for: struts.xml: --- ${targetUrl} in your acme.Action1 class: --- String targetUrl; public String getTargetUrl() { return this.targetUrl; } public String execute() { if (...

Re: Forward a action from one action programmatically in STruts 2.0

2007-03-20 Thread Rene Gielen
Maybe this is the option you are searching for: struts.xml: --- ${targetUrl} in your acme.Action1 class: --- String targetUrl; public String getTargetUrl() { return this.targetUrl; } public String execute() { if (...) { this,ta

Re: Forward a action from one action programmatically in STruts 2.0

2007-03-20 Thread Rene Gielen
Maybe this is the option you are searching for: struts.xml: --- ${targetUrl} in your acme.Action1 class: --- String targetUrl; public String getTargetUrl() { return this.targetUrl; } public String execute() { if (...) { this,ta

Re: Forward a action from one action programmatically in STruts 2.0

2007-03-16 Thread arunkumar S
Hi, Thanks for the inputs. my req. will not satisfy your suggestion. My req. is I have to load different Jsps depending on the user profile. eg . for user with profile = "abc", i will have JSps like 1_abc.jsp,2_abc.jsp,3_abc.jsp for user with profile = def , i will have

Re: Forward a action from one action programmatically in STruts 2.0

2007-03-16 Thread Harring Figueiredo
The way I solve this is by returning the value you want and setting up the action chain on struts.xml file: Example: class MyAction 1 .. { public String execute(){ if(foo) return "foo"; else return "bar"; } Then on the Strutus XML file:

Forward a action from one action programmatically in STruts 2.0

2007-03-15 Thread arunkumar S
Hi, I have a requirement where in the action has to be forwarded based on certain runtime conditions.The destination will be decided only on the runtime. --- if(Input = "Case1" ) forward action1 else forward action2. --- Basically i want to