Choosing a result dynamically based on session attribute?

2010-08-18 Thread java . rgm
Is it possible to choose an action result based on a value in the HttpSession?  
I have read the following page:

http://struts.apache.org/2.0.11.1/docs/parameters-in-configuration-results.html

I understand how to reference properties from the action itself, but is it 
possible if the action does NOT provide a getSession() method?
I'd like to do something like this:

action name=index
  result type=freemarker/layouts/${Session.layout}/index.ftl/result
/action

-rgm

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



Re: Choosing a result dynamically based on session attribute?

2010-08-18 Thread Dave Newton
Did you try using normal OGNL syntax for accessing value stack properties?

On Aug 18, 2010 4:16 PM, java@spamgourmet.com wrote:
Is it possible to choose an action result based on a value in the
HttpSession?  I have read the following page:

http://struts.apache.org/2.0.11.1/docs/parameters-in-configuration-results.html

I understand how to reference properties from the action itself, but is it
possible if the action does NOT provide a getSession() method?
I'd like to do something like this:

action name=index
 result type=freemarker/layouts/${Session.layout}/index.ftl/result
/action

-rgm

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