ed
> our two resident Martin's, who (IMHO) don't deserve equal respect!
>
> -Dale
>
> -------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail
Alex Siman wrote:
I switched off the JSTL-EL (as it was recomended in Struts2 wiki)
Can you please point me to that? Seems quite strange to me...
Since we've removed the possibility of including JSTL-EL expressions in
struts tag attributes, this advice is no longer appropriate. If that's
t
that's only a problem for defining maps in ognl, which used the
"#{a:b}" syntax, which made the jstl el complain. The solution is just
to use the alternative map syntax:
#...@java.util.linkedhashmap@{ "foo" : "foo value", "bar" : "bar value" }
http://www.opensymphony.com/ognl/html/LanguageGuide/c
Alex Siman wrote:
I switched off the JSTL-EL (as it was recomended in Struts2 wiki)
Can you please point me to that? Seems quite strange to me...
Read the section "JSP 2.1" here:
http://struts.apache.org/2.1.8/docs/ognl.html
That was added by Ted Husted on 3/23/2007.
What are the problems
call).
>>>
>>> -Dale
>>>
>>> ---------------------
>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> For additional commands,
>>
>> -Dale
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>
>
>
> --
> "Hey
ntains no recursive calls."
I think this issues can be put back until .tag file calls itself, right?
P.S. Dale, sorry for 'Dave')) Kinda 'Dale Newfield' ~= 'Dave Newton'.
--
View this message in context:
http://www.nabble.com/How-to-get-value-of-tag-attribute-from-O
on top of that, you can use the the struts "set" tag to set stuff in
any of the contexts. Scriptlets are evil.
musachy
On Tue, Oct 13, 2009 at 9:41 AM, Dale Newfield wrote:
> Alex Siman wrote:
>>
>> Thanx you Dave for your advice!
>
> Sure, Alix.
>
>> I switched off the JSTL-EL (as it was recome
Alex Siman wrote:
Thanx you Dave for your advice!
Sure, Alix.
I switched off the JSTL-EL (as it was recomended in Struts2 wiki)
Can you please point me to that? Seems quite strange to me...
so I wrote another working code:
snippets of java inside your .jsp seems like a step back about
>>> <%@ attribute name="fieldName" %>
>>
>>
>>
>> -Dale
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@st
--
>> <%@ attribute name="fieldName" %>
>
>
>
> -Dale
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-ma
The answer is easier if this .tag file contains no recursive calls.
The issue is that the .tag file receives attributes through jstl-el, not
ognl. You can use the jstl-el c:set tag to promote that value into a
namespace that's also accessible from ognl.
Alex Siman wrote:
/WEB-INF/tags/formFi
ent: Tuesday, October 13, 2009 9:25 AM
>>To: user@struts.apache.org
>>Subject: Re: How to get value of tag attribute from OGNL?
>>
>>
>>OK, I figured out how to get value of tag attribute in JSP:
>>
>> <%= jspContext.getAttribute("fieldName
Why not use this?
http://struts.apache.org/2.1.6/docs/set.html
>-Original Message-
>From: Alex Siman [mailto:aleksandr.si...@gmail.com]
>Sent: Tuesday, October 13, 2009 9:25 AM
>To: user@struts.apache.org
>Subject: Re: How to get value of tag attribute from OGNL?
>
&g
So, how to get access to jspContext from OGNL or at least Java code?
--
View this message in context:
http://www.nabble.com/How-to-get-value-of-tag-attribute-from-OGNL--tp25862967p25872856.html
Sent from the Struts - User mailing list archive at Nabble.com.
--
ribute' I use this code:
>>
>>
>> OGNL context works fine within this file tag. But I realized that if
>> there
>> will be an action property with the same name 'someTagAttribute' and
>> value
>> for tag attribute
ot be set, then the above code will return value of
> action property as if it is the value of tag attribute.
>
> How to get value of tag attribute directly from OGNL?
> --
> View this message in context:
> http://www.nabble.com/How-to-get-value-of-tag-attribute-from-OGNL--
h the same name 'someTagAttribute' and value
for tag attribute will not be set, then the above code will return value of
action property as if it is the value of tag attribute.
How to get value of tag attribute directly from OGNL?
--
View this message in context:
http://www.nabble.com
18 matches
Mail list logo