the use of
OGNL expressions on JSP to access to an object that i declared in a
scriptlet in the same JSP.
I have the following code:
%
AnObject obj = request.getSession().getAttribute(AnObject.OBJECT_NAME);
%
s:if test=#attr['obj'].usuario.sesionAnonima == true
Hi to all, this is my first question here. I have a doubt about the use of
OGNL expressions on JSP to access to an object that i declared in a
scriptlet in the same JSP.
I have the following code:
%
AnObject obj = request.getSession().getAttribute(AnObject.OBJECT_NAME);
%
s:if test=#attr
, you need to actually add it to the context.
musachy
On Mon, Nov 9, 2009 at 1:47 PM, Oscar Calderón oscar.kalde...@gmail.com
wrote:
Hi to all, this is my first question here. I have a doubt about the use
of
OGNL expressions on JSP to access to an object that i declared in a
scriptlet
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
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=558805view=markup
They include stackand ognl.
Zarar
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:
reliably.
--
John M Flinchbaugh
[EMAIL PROTECTED]
http://www.nabble.com/accessing-ognl-from-jsp-2.0-el--tf3671805.html
-- cut --
In webwork, I had become accustomed to having a getXyz() method on an
action, and being able to just access it in jsp as ${xyz}. The ability
was just built in, per:
http
In webwork, I had become accustomed to having a getXyz() method on an
action, and being able to just access it in jsp as ${xyz}. The ability
was just built in, per:
http://wiki.opensymphony.com/display/WW/Using+WebWork+and+XWork+with+JSP+2.0+and+JSTL+1.1
Struts 2 has this same page without the
8 matches
Mail list logo