<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>Java Web Hosting Blog</title>
	<link>http://www.virtualwebstudio.com/blog</link>
	<description>Blog for java , jsp, j2ee, struts, servlets and jboss web hosting users</description>
	<pubDate>Mon, 05 Feb 2007 14:33:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>
	<language>en</language>
			<item>
		<title>[ Team LiB ] Page 215</title>
		<link>http://www.virtualwebstudio.com/blog/2007/02/05/team-lib-page-215/</link>
		<comments>http://www.virtualwebstudio.com/blog/2007/02/05/team-lib-page-215/#comments</comments>
		<pubDate>Mon, 05 Feb 2007 14:33:49 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
	<category>jsp</category>
		<guid isPermaLink="false">http://www.virtualwebstudio.com/blog/2007/02/05/team-lib-page-215/</guid>
		<description><![CDATA[[ Team LiB ]    Page 215    
Hint: If you are looking for high quality and reliable webspace provider to host and run your jsp hosting application check Sandzak jsp web hosting provider

]]></description>
			<content:encoded><![CDATA[<p>[ Team LiB ]    Page 215    </p>
<p>Hint: If you are looking for high quality and reliable webspace provider to host and run your jsp hosting application check Sandzak <a target="_blank" href="http://www.sandzak.com/blog/">jsp web hosting</a> provider
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.virtualwebstudio.com/blog/2007/02/05/team-lib-page-215/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Page 214</title>
		<link>http://www.virtualwebstudio.com/blog/2007/02/05/page-214/</link>
		<comments>http://www.virtualwebstudio.com/blog/2007/02/05/page-214/#comments</comments>
		<pubDate>Mon, 05 Feb 2007 09:28:07 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
	<category>jsp</category>
		<guid isPermaLink="false">http://www.virtualwebstudio.com/blog/2007/02/05/page-214/</guid>
		<description><![CDATA[Page 214    Note: If you are looking for inexpensive but high quality provider to host and run your serlvet application check Astra servlet hosting services

]]></description>
			<content:encoded><![CDATA[<p>Page 214    <br />Note: If you are looking for inexpensive but high quality provider to host and run your serlvet application check Astra <a target="_blank" href="http://www.omnicus.net/">servlet hosting</a> services
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.virtualwebstudio.com/blog/2007/02/05/page-214/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>[ Team LiB ] 11.5 Using Scopes from</title>
		<link>http://www.virtualwebstudio.com/blog/2007/02/04/team-lib-115-using-scopes-from/</link>
		<comments>http://www.virtualwebstudio.com/blog/2007/02/04/team-lib-115-using-scopes-from/#comments</comments>
		<pubDate>Mon, 05 Feb 2007 04:30:15 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
	<category>jsp</category>
		<guid isPermaLink="false">http://www.virtualwebstudio.com/blog/2007/02/04/team-lib-115-using-scopes-from/</guid>
		<description><![CDATA[[ Team LiB ]    11.5 Using Scopes from Servlets  Chapter 3 discussed the various scopes in which beans can live. Although these scopes are  usually accessed by setting the scope field in a jsp:useBean tag, they can also be accessed  through scriptlets or through code in a servlet. Listing [...]]]></description>
			<content:encoded><![CDATA[<p>[ Team LiB ]    11.5 Using Scopes from Servlets  Chapter 3 discussed the various scopes in which beans can live. Although these scopes are  usually accessed by setting the scope field in a jsp:useBean tag, they can also be accessed  through scriptlets or through code in a servlet. Listing 11.6 shows a servlet with a counter,  which works much like the JSP in Listing 3.8 did.   Listing 11.6 A servlet with a page counter   package com.awl.jspblog.ch11;   import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class Counter1 extends HttpServlet {   private int count;   public void init(ServletConfig sc) throws ServletException   {  super.init(sc); count = 0;   }   public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException,ServletException {  handle(req,res); }    public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException,ServletException {  handle(req,res); }    public void handle(HttpServletRequest req, HttpServletResponse res) throws IOException,ServletException   {  res.setStatus(res.SC_OK); res.setContentType(&#8221;text/html&#8221;);    PrintWriter out = res.getWriter();   out.println(&#8221;<HTML>&#8220;); out.println(&#8221;<HEAD><TITLE>A Counter</TITLE></HEAD>&#8220;); out.println(&#8221;<BODY>&#8220;); out.println(&#8221;This page has been accessed &#8220;); out.println(count); out.println(&#8221; times&#8221;); out.println(&#8221;</BODY>&#8220;); out.println(&#8221;</HTML>&#8220;);   Page 213    <br />Quick Hint: If you are looking for best quality webspace to host and run your tomcat application check Vision <a target="_blank" href="http://www.visionwebhosting.net/">tomcat hosting</a> services
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.virtualwebstudio.com/blog/2007/02/04/team-lib-115-using-scopes-from/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>[ Team LiB ] Page 212</title>
		<link>http://www.virtualwebstudio.com/blog/2007/02/04/team-lib-page-212/</link>
		<comments>http://www.virtualwebstudio.com/blog/2007/02/04/team-lib-page-212/#comments</comments>
		<pubDate>Sun, 04 Feb 2007 21:41:22 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
	<category>jsp</category>
		<guid isPermaLink="false">http://www.virtualwebstudio.com/blog/2007/02/04/team-lib-page-212/</guid>
		<description><![CDATA[[ Team LiB ]    Page 212    Hint: If you are looking for high quality webhost to host and run your jsp application check Vision web hosting jsp services

]]></description>
			<content:encoded><![CDATA[<p>[ Team LiB ]    Page 212    <br />Hint: If you are looking for high quality webhost to host and run your jsp application check Vision <a target="_blank" href="http://www.visionwebhosting.net">web hosting jsp</a> services
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.virtualwebstudio.com/blog/2007/02/04/team-lib-page-212/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>[ Team LiB ] 11.4 Forwarding and Including</title>
		<link>http://www.virtualwebstudio.com/blog/2007/02/04/team-lib-114-forwarding-and-including/</link>
		<comments>http://www.virtualwebstudio.com/blog/2007/02/04/team-lib-114-forwarding-and-including/#comments</comments>
		<pubDate>Sun, 04 Feb 2007 15:06:23 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
	<category>jsp</category>
		<guid isPermaLink="false">http://www.virtualwebstudio.com/blog/2007/02/04/team-lib-114-forwarding-and-including/</guid>
		<description><![CDATA[[ Team LiB ]    11.4 Forwarding and Including Requests  Many examples throughout this blog have sent a user to another page, using a technique  very different from the redirects. The jsp:forward tag is sort of a &#8220;server-side&#8221; redirect, as it  instructs the server to generate a different page rather [...]]]></description>
			<content:encoded><![CDATA[<p>[ Team LiB ]    11.4 Forwarding and Including Requests  Many examples throughout this blog have sent a user to another page, using a technique  very different from the redirects. The jsp:forward tag is sort of a &#8220;server-side&#8221; redirect, as it  instructs the server to generate a different page rather than tells the browser to load a new  URL. This is related to the jsp:include tag, which includes the body of one JSP, HTML page,  or servlet in another. There is no corresponding way to do this on the client side, at least not  one that works on all browsers.   Both of these tags are handled internally by the RequestDispatcher class, which, as the  name implies, can dispatch a request to another resource in the system. It does this through  two methods called, appropriately enough, forward() and include(). Both of these methods  take as arguments the request and response objects that the calling servlet was passed. As  might be expected, these objects will end up getting passed to the target servlet&#8217;s service() method. Listing 4.14 showed a JSP that used a jsp:forward tag and input from the user to  send the user one of three pages. Listing 11.5 shows how a servlet would accomplish the  same thing.   Listing 11.5 A servlet that forwards requests   package com.awl.jspblog.ch11;   import javax.servlet.*; import javax.servlet.http.*; import java.io.*;   public class DispatchServlet extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException,ServletException  {  ServletContext sc = getServletContext(); RequestDispatcher rd;    String which = req.getParameter(&#8221;which&#8221;);   if(which != null) {  if(which.equals(&#8221;red&#8221;)) { rd = sc.getRequestDispatcher(&#8221;/chapter11/red.jsp&#8221;); rd.forward(req,res);  } else if(which.equals(&#8221;green&#8221;)) { rd = sc.getRequestDispatcher(&#8221;/chapter11/green.jsp&#8221;); rd.forward(req,res);  } else if(which.equals(&#8221;blue&#8221;)) { rd = sc.getRequestDispatcher(&#8221;/chapter11/blue.jsp&#8221;); rd.forward(req,res);  } else {  res.sendError(res.SC_INTERNAL_SERVER_ERROR, &#8220;A page was requested that does exist!&#8221;); }  } else {  res.sendError(res.SC_INTERNAL_SERVER_ERROR, &#8220;No destination page was specified!&#8221;); }   } }   Page 211    <br /> Note: If you are looking for cheap and inexpensive provider to host and run your tomcat application check professional <a target="_blank" href="http://www.webhostingjava.net/">tomcat hosting</a> services
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.virtualwebstudio.com/blog/2007/02/04/team-lib-114-forwarding-and-including/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>[ Team LiB ] Page 210</title>
		<link>http://www.virtualwebstudio.com/blog/2007/02/04/team-lib-page-210/</link>
		<comments>http://www.virtualwebstudio.com/blog/2007/02/04/team-lib-page-210/#comments</comments>
		<pubDate>Sun, 04 Feb 2007 09:29:11 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
	<category>jsp</category>
		<guid isPermaLink="false">http://www.virtualwebstudio.com/blog/2007/02/04/team-lib-page-210/</guid>
		<description><![CDATA[[ Team LiB ]    Page 210     Note: If you are looking for cheapest and affordable webspace to host and run your servlet application check Astra j2ee hosting services

]]></description>
			<content:encoded><![CDATA[<p>[ Team LiB ]    Page 210    <br /> Note: If you are looking for cheapest and affordable webspace to host and run your servlet application check Astra <a target="_blank" href="http://www.omnicus.net/">j2ee hosting</a> services
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.virtualwebstudio.com/blog/2007/02/04/team-lib-page-210/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>[ Team LiB ] 11.3 Servlet Events Often,</title>
		<link>http://www.virtualwebstudio.com/blog/2007/02/03/team-lib-113-servlet-events-often/</link>
		<comments>http://www.virtualwebstudio.com/blog/2007/02/03/team-lib-113-servlet-events-often/#comments</comments>
		<pubDate>Sun, 04 Feb 2007 01:18:52 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
	<category>jsp</category>
		<guid isPermaLink="false">http://www.virtualwebstudio.com/blog/2007/02/03/team-lib-113-servlet-events-often/</guid>
		<description><![CDATA[[ Team LiB ]    11.3 Servlet Events  Often, developers may wish to take certain special actions at various points during the life  cycle of either a servlet or the application as a whole. Some of these actions can be handled  by simply adding code to the appropriate life-cycle method, [...]]]></description>
			<content:encoded><![CDATA[<p>[ Team LiB ]    11.3 Servlet Events  Often, developers may wish to take certain special actions at various points during the life  cycle of either a servlet or the application as a whole. Some of these actions can be handled  by simply adding code to the appropriate life-cycle method, but other methods are not  available to the general programmer. One common case is session handling. If an application  could determine when a session was being expired, it would be possible to move data from the  session into a database before it disappeared forever. Likewise, knowledge of when a session  was being created would make it possible to move data from the database into the session.  The result would be sessions that are effectively immortal, providing a seamless experience for  the user.   This could be achieved in many ways, but a natural mechanism is already provided by the  JavaBean specification by way of events and listeners, as discussed in the preceding chapter.  The idea is that the servlet engine will fire off an event representing various activities, and  programmers can build listeners to capture and act on these events. Conceptually, this works  just like any other bean event; it is simply a matter of implementing the right listener  interfaces and working with the corresponding events. An outline of the session backup  listener is shown in Listing 11.4.   Listing 11.4 The outline of a session listener   package com.awl.jspblog.ch11;   import javax.servlet.http.*;   public class BackupListenerimplements HttpSessionAttributeListener  {  public voidsessionCreated(HttpSessionEvent event) {   HttpSession session = event.getSession();   // &#8230; load the session from the database &#8230; }    public void sessionDestroyed(HttpSessionEvent event) {    HttpSession session = event.getSession();   // &#8230; back up the session to the database &#8230; }    public void attributeAdded(HttpSessionBindingEvent event) {    // &#8230; It may not be necessary to do anything for this  // event, but the interface requires it be provided }    public void attributeRemoved(HttpSessionBindingEvent event) {    // &#8230; It may not be necessary to do anything   Page 209    <br />Quick Hint: If you are looking for best quality webspace to host and run your tomcat application check Vision <a target="_blank" href="http://www.visionwebhosting.net/">tomcat hosting</a> services
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.virtualwebstudio.com/blog/2007/02/03/team-lib-113-servlet-events-often/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>[ Team LiB ] Page 208</title>
		<link>http://www.virtualwebstudio.com/blog/2007/02/03/team-lib-page-208/</link>
		<comments>http://www.virtualwebstudio.com/blog/2007/02/03/team-lib-page-208/#comments</comments>
		<pubDate>Sat, 03 Feb 2007 17:38:28 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
	<category>jsp</category>
		<guid isPermaLink="false">http://www.virtualwebstudio.com/blog/2007/02/03/team-lib-page-208/</guid>
		<description><![CDATA[[ Team LiB ]    Page 208    Hint: If you are looking for good and high quality web space to host and run your java application check Vision java web hosting services

]]></description>
			<content:encoded><![CDATA[<p>[ Team LiB ]    Page 208    <br />Hint: If you are looking for good and high quality web space to host and run your java application check Vision <a target="_blank" href="http://www.visionwebhosting.net">java web hosting</a> services
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.virtualwebstudio.com/blog/2007/02/03/team-lib-page-208/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Page 207</title>
		<link>http://www.virtualwebstudio.com/blog/2007/02/03/page-207/</link>
		<comments>http://www.virtualwebstudio.com/blog/2007/02/03/page-207/#comments</comments>
		<pubDate>Sat, 03 Feb 2007 12:32:53 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
	<category>jsp</category>
		<guid isPermaLink="false">http://www.virtualwebstudio.com/blog/2007/02/03/page-207/</guid>
		<description><![CDATA[Page 207    
Hint: If you are looking for very good and affordable webspace to host and run your java hosting application check Sandzak.com java web hosting provider

]]></description>
			<content:encoded><![CDATA[<p>Page 207    </p>
<p>Hint: If you are looking for very good and affordable webspace to host and run your java hosting application check Sandzak.com <a target="_blank" href="http://www.sandzak.com/blog/">java web hosting</a> provider
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.virtualwebstudio.com/blog/2007/02/03/page-207/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Page 206</title>
		<link>http://www.virtualwebstudio.com/blog/2007/02/02/page-206/</link>
		<comments>http://www.virtualwebstudio.com/blog/2007/02/02/page-206/#comments</comments>
		<pubDate>Fri, 02 Feb 2007 08:38:15 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
	<category>jsp</category>
		<guid isPermaLink="false">http://www.virtualwebstudio.com/blog/2007/02/02/page-206/</guid>
		<description><![CDATA[Page 206    
Hint: If you are looking for high quality and reliable webspace provider to host and run your jsp hosting application check Sandzak jsp web hosting provider

]]></description>
			<content:encoded><![CDATA[<p>Page 206    </p>
<p>Hint: If you are looking for high quality and reliable webspace provider to host and run your jsp hosting application check Sandzak <a target="_blank" href="http://www.sandzak.com/blog/">jsp web hosting</a> provider
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.virtualwebstudio.com/blog/2007/02/02/page-206/feed/</wfw:commentRSS>
		</item>
	</channel>
</rss>
