Re: How to get value of tag attribute from OGNL?

2009-10-13 Thread Alex Siman
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

Re: How to get value of tag attribute from OGNL?

2009-10-13 Thread Dale Newfield
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

Re: How to get value of tag attribute from OGNL?

2009-10-13 Thread Musachy Barroso
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

Re: How to get value of tag attribute from OGNL?

2009-10-13 Thread Dale Newfield
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

Re: How to get value of tag attribute from OGNL?

2009-10-13 Thread Musachy Barroso
call). >>> >>> -Dale >>> >>> --------------------- >>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >>> For additional commands,

Re: How to get value of tag attribute from OGNL?

2009-10-13 Thread Alex Siman
>> >> -Dale >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> > > > > -- > "Hey

Re: How to get value of tag attribute from OGNL?

2009-10-13 Thread Alex Siman
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

Re: How to get value of tag attribute from OGNL?

2009-10-13 Thread Musachy Barroso
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

Re: How to get value of tag attribute from OGNL?

2009-10-13 Thread Dale Newfield
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

[CLOSED] Re: How to get value of tag attribute from OGNL?

2009-10-13 Thread Alex Siman
>>> <%@ attribute name="fieldName" %> >> >> >> >> -Dale >> >> - >> To unsubscribe, e-mail: user-unsubscr...@st

Re: How to get value of tag attribute from OGNL?

2009-10-13 Thread Alex Siman
-- >> <%@ attribute name="fieldName" %> > > > > -Dale > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-ma

Re: How to get value of tag attribute from OGNL?

2009-10-13 Thread Dale Newfield
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

RE: How to get value of tag attribute from OGNL?

2009-10-13 Thread Alex Siman
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

RE: How to get value of tag attribute from OGNL?

2009-10-13 Thread Mike Baranski
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

Re: How to get value of tag attribute from OGNL?

2009-10-13 Thread Alex Siman
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. --

Re: How to get value of tag attribute from OGNL?

2009-10-13 Thread Alex Siman
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

Re: How to get value of tag attribute from OGNL?

2009-10-12 Thread Musachy Barroso
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--

How to get value of tag attribute from OGNL?

2009-10-12 Thread Alex Siman
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