struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: How to set session data based on request parameters and how to retrieve session values correctly via OGNL
Date Tue, 10 Jun 2008 17:17:04 GMT
--- On Tue, 6/10/08, Gamble, Wesley (WG10) <WG10@tmw.com> wrote:
> Should I use an interceptor for this?

Depends.

> How does the interceptor get access to the request variables?

See the ServletConfigInterceptor source, also viewable online [1]. (The version doesn't matter
too much in this case.)

> <title> ${#session['companyName']}

You're mixing JSP EL with OGNL.

http://struts.apache.org/2.x/docs/ognl.html

Dave

[1] http://svn.apache.org/viewvc/struts/struts2/tags/STRUTS_2_1_2/core/src/main/java/org/apache/struts2/interceptor/ServletConfigInterceptor.java?revision=652750&view=markup


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message