You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Chetan Pandey <cp...@bluesingapore.com> on 2006/10/10 12:57:15 UTC
Struts Equivalent
For the following Scriptlet:
<%session.setAttribute("var1",null); %>
Is the following equivalent:
<bean:define id="var1" scope="session" value="" />
Thanks and Regards.
Chetan
Re: Struts Equivalent
Posted by Antonio Petrelli <ap...@apache.org>.
Chetan Pandey ha scritto:
> So is their a way we can say:
>
> session.removeAttribute("var1");
>
> using <bean:define>
>
No, you have to use <c:remove> tag of JSTL.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Struts Equivalent
Posted by Chetan Pandey <cp...@bluesingapore.com>.
So is their a way we can say:
session.removeAttribute("var1");
using <bean:define>
Thanks.
Chetan
-----Original Message-----
From: Antonio Petrelli [mailto:apetrelli@apache.org]
Sent: Tuesday, October 10, 2006 7:36 PM
To: Struts Users Mailing List
Subject: Re: Struts Equivalent
Chetan Pandey ha scritto:
> For the following Scriptlet:
> <%session.setAttribute("var1",null); %>
> Is the following equivalent:
> <bean:define id="var1" scope="session" value="" />
>
NO!
session.setAttribute("var1", null); is equivalent to
session.removeAttribute("var1");
<bean:define id="var1" scope="session" value="" /> is equivalent to
session.setAttribute("var1", "");
---------------------------------------------------------------------
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
Re: Struts Equivalent
Posted by Antonio Petrelli <ap...@apache.org>.
Chetan Pandey ha scritto:
> For the following Scriptlet:
> <%session.setAttribute("var1",null); %>
> Is the following equivalent:
> <bean:define id="var1" scope="session" value="" />
>
NO!
session.setAttribute("var1", null); is equivalent to
session.removeAttribute("var1");
<bean:define id="var1" scope="session" value="" /> is equivalent to session.setAttribute("var1", "");
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org