<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'scope="application" and scope="session"' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'scope="application" and scope="session"' posted on the 'Java Server Pages' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Wed, 23 May 2012 21:29:43 -0700</pubDate>
    <lastBuildDate>Wed, 23 May 2012 21:29:43 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>scope="application" and scope="session"</title>
      <link>http://www.programmersheaven.com/mb/jsp/178853/178853/scopeapplication-and-scopesession/</link>
      <description>&lt;br /&gt;
&amp;lt;jsp:useBean scope="application" id="myOwnBean" ...&amp;gt; &lt;br /&gt;
&lt;br /&gt;
How do I stop/kill a instans of that bean in my JSP-code so the instans&lt;br /&gt;
disapear ?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/178853/178853/scopeapplication-and-scopesession/</guid>
      <pubDate>Wed, 26 Mar 2003 09:30:54 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: scope="application" and scope="session"</title>
      <link>http://www.programmersheaven.com/mb/jsp/178853/179049/re-scopeapplication-and-scopesession/#179049</link>
      <description>You don't.&lt;br /&gt;
You have a few scopes that you can use:&lt;br /&gt;
  Request&lt;br /&gt;
  Page&lt;br /&gt;
  Session&lt;br /&gt;
  Application&lt;br /&gt;
&lt;br /&gt;
If you have a request scope, it will only run for the request that is made on that same moment.&lt;br /&gt;
If you have a page scope, the parameters and values will run for that page the whole time until the server is restarted.&lt;br /&gt;
If you have a session scope, all the values will be kept for until the clients session is destroyed.&lt;br /&gt;
And least the application scope, if you apply the application scope, the values will be kept for the entire application, until the server is restarted.&lt;br /&gt;
&lt;br /&gt;
Hope this cleared up a bit.&lt;br /&gt;
Success,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--=][tReShR][=--&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/178853/179049/re-scopeapplication-and-scopesession/#179049</guid>
      <pubDate>Thu, 27 Mar 2003 00:46:21 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: scope="application" and scope="session"</title>
      <link>http://www.programmersheaven.com/mb/jsp/178853/179074/re-scopeapplication-and-scopesession/#179074</link>
      <description>&lt;br /&gt;
Hi --=][tReShR][=--,&lt;br /&gt;
&lt;br /&gt;
I found the answer that:&lt;br /&gt;
&lt;br /&gt;
application.removeAttribute("myBeanName"); &lt;br /&gt;
_and_&lt;br /&gt;
session.removeAttribute("myBeanName");&lt;br /&gt;
&lt;br /&gt;
Removes the instans of my bean...&lt;br /&gt;
&lt;br /&gt;
Couldnt this be true?...its work for me.&lt;br /&gt;
&lt;br /&gt;
 // hedis&lt;br /&gt;
&lt;br /&gt;
You Wrote:&lt;br /&gt;
: You don't.&lt;br /&gt;
: ...&lt;br /&gt;
: And least the application scope, if you apply the application scope, the values will be kept for the entire application, until the server is restarted.&lt;br /&gt;
: --=][tReShR][=--&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/178853/179074/re-scopeapplication-and-scopesession/#179074</guid>
      <pubDate>Thu, 27 Mar 2003 02:35:06 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: scope="application" and scope="session"</title>
      <link>http://www.programmersheaven.com/mb/jsp/178853/179328/re-scopeapplication-and-scopesession/#179328</link>
      <description>You probably can, but the thing is, it is not a really good way to do it.&lt;br /&gt;
&lt;br /&gt;
You have to be sure about the scope before you're using it, otherwise why would even use a scope if you can just reamove it this way.&lt;br /&gt;
&lt;br /&gt;
That's why I said to use different scopes that you can use in a good way.&lt;br /&gt;
&lt;br /&gt;
I even think that there are gonna problems later on, when you use this in a big application. Like bugs, or values from different JavaBeans.&lt;br /&gt;
&lt;br /&gt;
My advice is not to just remove the attributes and let Tomcat or Websphere take care of all the managing, that's their work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--=][tReShR][=--&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/178853/179328/re-scopeapplication-and-scopesession/#179328</guid>
      <pubDate>Fri, 28 Mar 2003 02:51:48 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: scope="application" and scope="session"</title>
      <link>http://www.programmersheaven.com/mb/jsp/178853/183186/re-scopeapplication-and-scopesession/#183186</link>
      <description>: You probably can, but the thing is, it is not a really good way to do it.&lt;br /&gt;
: &lt;br /&gt;
: You have to be sure about the scope before you're using it, otherwise why would even use a scope if you can just reamove it this way.&lt;br /&gt;
: &lt;br /&gt;
: That's why I said to use different scopes that you can use in a good way.&lt;br /&gt;
: &lt;br /&gt;
: I even think that there are gonna problems later on, when you use this in a big application. Like bugs, or values from different JavaBeans.&lt;br /&gt;
: &lt;br /&gt;
: My advice is not to just remove the attributes and let Tomcat or Websphere take care of all the managing, that's their work.&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: --=][tReShR][=--&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/178853/183186/re-scopeapplication-and-scopesession/#183186</guid>
      <pubDate>Tue, 15 Apr 2003 07:55:45 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: scope="application" and scope="session"</title>
      <link>http://www.programmersheaven.com/mb/jsp/178853/183189/re-scopeapplication-and-scopesession/#183189</link>
      <description>Why don't you just invalidate your application or session cookies???&lt;br /&gt;
example &amp;lt;%session.invalidate()%&amp;gt;&lt;br /&gt;
: You probably can, but the thing is, it is not a really good way to do it.&lt;br /&gt;
: &lt;br /&gt;
: You have to be sure about the scope before you're using it, otherwise why would even use a scope if you can just reamove it this way.&lt;br /&gt;
: &lt;br /&gt;
: That's why I said to use different scopes that you can use in a good way.&lt;br /&gt;
: &lt;br /&gt;
: I even think that there are gonna problems later on, when you use this in a big application. Like bugs, or values from different JavaBeans.&lt;br /&gt;
: &lt;br /&gt;
: My advice is not to just remove the attributes and let Tomcat or Websphere take care of all the managing, that's their work.&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: --=][tReShR][=--&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/178853/183189/re-scopeapplication-and-scopesession/#183189</guid>
      <pubDate>Tue, 15 Apr 2003 07:56:54 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: scope="application" and scope="session"</title>
      <link>http://www.programmersheaven.com/mb/jsp/178853/391813/re-scopeapplication-and-scopesession/#391813</link>
      <description>Wait a minute, you just defined everything in term of themselves ie - request scope lasts for the length of the request etc.&lt;br /&gt;
&lt;br /&gt;
Has anybody here ever take math?&lt;br /&gt;
&lt;br /&gt;
What actions on the part of a user or server start a request?&lt;br /&gt;
What actions on the part of a user or server end a request?&lt;br /&gt;
What actions on the part of a user or server start a page?&lt;br /&gt;
What actions on the part of a user or server end a page?&lt;br /&gt;
What actions on the part of a user or server start a session?&lt;br /&gt;
What actions on the part of a user or server end a session?&lt;br /&gt;
What actions on the part of a user or server start an application?&lt;br /&gt;
What actions on the part of a user or server end an application?&lt;br /&gt;
&lt;br /&gt;
If you are unable to give a definition without using the term to be defined, you aren't giving a definition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/178853/391813/re-scopeapplication-and-scopesession/#391813</guid>
      <pubDate>Mon, 01 Jun 2009 08:06:23 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
  </channel>
</rss>
