If the variable you're looking for is stored in the context you will be able to retrieve it like this in a JSP:
${stack.context['com.opensymphony.xwork2.ActionContext.name']} If you're using Freemarker then you can simply go: stack.findString("com.opensymphony.xwork2.ActionContext.name") But you're right in if what you're looking for is stored in some place other than the context then it seems difficult to retrieve it using JSP. On 9/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Yes, but how does solve this problem? > > On 9/28/07, Zarar Siddiqi <[EMAIL PROTECTED]> wrote: > > > > Did you know you have all the variables declared in this class as > > public static final at your disposal: > > > > > > http://svn.apache.org/viewvc/struts/struts2/tags/STRUTS_2_0_9/core/src/main/java/org/apache/struts2/views/util/ContextUtil.java?revision=558805&view=markup > > > > They include "stack"and "ognl". > > > > Zarar > > > > On 9/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hell, I give up! Can someone show me how to fetch the action context > > name > > > off the value stack from inside a jsp? This works fine from an action > > but > > > doesn't quite follow the java beans convention! > > > > > > invocation.getStack().findString(" > > com.opensymphony.xwork2.ActionContext.name > > > ") > > > > > > -- > > > Scott > > > [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Scott > [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]