Re: Question about OGNL in JSP

2009-11-09 Thread Musachy Barroso
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

Question about OGNL in JSP

2009-11-09 Thread Oscar Calderón
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

Re: Question about OGNL in JSP

2009-11-09 Thread Oscar Calderón
, 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

OGNL in JSP

2007-09-28 Thread stanlick
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

Re: OGNL in JSP

2007-09-28 Thread Zarar Siddiqi
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

Re: OGNL in JSP

2007-09-28 Thread stanlick
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:

Re: accessing ognl from jsp 2.0 el?

2007-05-02 Thread John M Flinchbaugh
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

accessing ognl from jsp 2.0 el?

2007-04-30 Thread John M Flinchbaugh
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