RE: Dynamically pulling in tile definitions based on session attributes using OGNL

2008-06-12 Thread Gamble, Wesley (WG10)
anks again, Wes -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2008 1:41 AM To: Struts Users Mailing List Subject: Re: Dynamically pulling in tile definitions based on session attributes using OGNL 2008/6/10 Gamble, Wesley (WG10) <[EMAIL PROTECTED]&g

Re: Dynamically pulling in tile definitions based on session attributes using OGNL

2008-06-10 Thread Antonio Petrelli
2008/6/10 Gamble, Wesley (WG10) <[EMAIL PROTECTED]>: > It does not work because Tiles (at the moment) does not support OGNL. Notice that Tiles does not support JSP EL "directly". In fact, it is the container that supports it. In other words, *before* the tag is called, the EL expression is eval

Re: Dynamically pulling in tile definitions based on session attributes using OGNL

2008-06-10 Thread Chris Pratt
Then again you could just use: or And ignore OGNL completely. In the first line, since you seem to have companyId in the session, and JSP EL searches through each scope to find a value, it will find the value of companyId (unless it finds a value in the page or request scopes first). The seco

RE: Dynamically pulling in tile definitions based on session attributes using OGNL

2008-06-10 Thread Dave Newton
--- On Tue, 6/10/08, Gamble, Wesley (WG10) <[EMAIL PROTECTED]> wrote: > I'm not clear on the distinction between EL and OGNL. OGNL is an EL, it's just not JSP EL. > As a rule of thumb, would it be correct to say that OGNL is > only valid within Struts tags, and I should never expect OGNL > interp

RE: Dynamically pulling in tile definitions based on session attributes using OGNL

2008-06-10 Thread Gamble, Wesley (WG10)
EMAIL PROTECTED] Sent: Tuesday, June 10, 2008 4:41 PM To: Struts Users Mailing List Subject: Re: Dynamically pulling in tile definitions based on session attributes using OGNL --- On Tue, 6/10/08, Gamble, Wesley (WG10) <[EMAIL PROTECTED]> wrote: > You're still mixing JSP EL and OGNL.

Re: Dynamically pulling in tile definitions based on session attributes using OGNL

2008-06-10 Thread Dave Newton
--- On Tue, 6/10/08, Gamble, Wesley (WG10) <[EMAIL PROTECTED]> wrote: > You're still mixing JSP EL and OGNL. The link I supplied earlier might still be handy (and I provided a direct link to your other question regarding interceptor access to various servlet-oriented structures). That aside, a

Dynamically pulling in tile definitions based on session attributes using OGNL

2008-06-10 Thread Gamble, Wesley (WG10)
All, Struts 2.0.11.1 Tiles 2.0.6 Is the following valid in a given JSP fragment/Tile? I'm trying to use the "companyId" attribute of my session to help define the name of a Tile definition. Assuming that session has a "companyId" attribute, of course. Thanks, Wes