<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://luminoussheep.net/mediawiki/index.php?action=history&amp;feed=atom&amp;title=JSP_Servlet_shared_bean_example</id>
	<title>JSP Servlet shared bean example - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://luminoussheep.net/mediawiki/index.php?action=history&amp;feed=atom&amp;title=JSP_Servlet_shared_bean_example"/>
	<link rel="alternate" type="text/html" href="https://luminoussheep.net/mediawiki/index.php?title=JSP_Servlet_shared_bean_example&amp;action=history"/>
	<updated>2026-04-16T19:03:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://luminoussheep.net/mediawiki/index.php?title=JSP_Servlet_shared_bean_example&amp;diff=63&amp;oldid=prev</id>
		<title>Martin: Created page with &quot;Servlet code:  public void doRequest(HttpServletRequest req,                     HttpServletResponse res) throws ServletException, IOException{       HttpSession session = req...&quot;</title>
		<link rel="alternate" type="text/html" href="https://luminoussheep.net/mediawiki/index.php?title=JSP_Servlet_shared_bean_example&amp;diff=63&amp;oldid=prev"/>
		<updated>2021-09-14T21:30:47Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Servlet code:  public void doRequest(HttpServletRequest req,                     HttpServletResponse res) throws ServletException, IOException{       HttpSession session = req...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Servlet code:&lt;br /&gt;
 public void doRequest(HttpServletRequest req,&lt;br /&gt;
                    HttpServletResponse res) throws ServletException, IOException{&lt;br /&gt;
      HttpSession session = req.getSession();&lt;br /&gt;
      FooBean foo= new FooBean ;&lt;br /&gt;
      foo.setName(&amp;quot;FooBean&amp;quot;, &amp;quot;bar&amp;quot;);&lt;br /&gt;
      session.setAttribute(&amp;quot;FooBean&amp;quot;, foo);&lt;br /&gt;
&lt;br /&gt;
JSP code&lt;br /&gt;
 &amp;lt;jsp:useBean id=&amp;quot;foo&amp;quot; type=&amp;quot;FooBean&amp;quot; scope=&amp;quot;session&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;jsp:getProperty name=&amp;quot;foo&amp;quot; property=&amp;quot;name&amp;quot;/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Martin</name></author>
	</entry>
</feed>