You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Igor Vlasov <vi...@mail.ru> on 2007/10/12 07:38:49 UTC
How to set object to value stack from jsp?
I have an object in session nad want to use it in jsp struts tag as a top
object.
I do not want to create action for geting it from session and putting it to
action property.
How can i put a value from session to the top of value stack ?
--
View this message in context: http://www.nabble.com/How-to-set-object-to-value-stack-from-jsp--tf4611537.html#a13169432
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to set object to value stack from jsp?
Posted by Dave Newton <ne...@yahoo.com>.
If you just need to access a value from the session on
a JSP page you can use OGNL's session access[1]. At
least with S1 the common practice was to disallow
direct access to JSP pages and instead route
everything through actions.
d.
[1] http://struts.apache.org/2.x/docs/ognl.html
--- Igor Vlasov <vi...@mail.ru> wrote:
>
> I have an object in session nad want to use it in
> jsp struts tag as a top
> object.
>
> I do not want to create action for geting it from
> session and putting it to
> action property.
>
> How can i put a value from session to the top of
> value stack ?
> --
> View this message in context:
>
http://www.nabble.com/How-to-set-object-to-value-stack-from-jsp--tf4611537.html#a13169432
> Sent from the Struts - User mailing list archive at
> Nabble.com.
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org