<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Learn Programming Online &#187; JSP</title>
	<atom:link href="http://freeonlineprogrammingtutorials.com/category/jsp/feed" rel="self" type="application/rss+xml" />
	<link>http://freeonlineprogrammingtutorials.com</link>
	<description>- Become a Coding Freak Today!</description>
	<lastBuildDate>Thu, 22 Mar 2012 06:16:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Lifecycle of a JSP Page</title>
		<link>http://freeonlineprogrammingtutorials.com/lifecycle-of-a-jsp-page</link>
		<comments>http://freeonlineprogrammingtutorials.com/lifecycle-of-a-jsp-page#comments</comments>
		<pubDate>Mon, 31 May 2010 10:16:25 +0000</pubDate>
		<dc:creator>WebProgrammer</dc:creator>
				<category><![CDATA[JSP]]></category>
		<category><![CDATA[Lifecycle of a JSP Page]]></category>

		<guid isPermaLink="false">http://freeonlineprogrammingtutorials.com/?p=99</guid>
		<description><![CDATA[Let us take a look at the life-cycle of a JSP Page • When a first request is made to the server the JSP files are compiled into servlets. Java Source Generation and Compilation • When a Web container receives a request for a JSP file, it passes the request to the JSP processor . [...]]]></description>
			<content:encoded><![CDATA[<p>Let us take a look at the life-cycle of a <a href="http://freeonlineprogrammingtutorials.com/wp-admin">JSP Page</a></p>
<p>•	When a first request is made to the server the JSP files are compiled into servlets.<br />
<div id="attachment_98" class="wp-caption alignnone" style="width: 283px"><a href="http://freeonlineprogrammingtutorials.com/wp-content/uploads/2010/05/Lifecycle-of-a-JSP-Page.jpg"><img src="http://freeonlineprogrammingtutorials.com/wp-content/uploads/2010/05/Lifecycle-of-a-JSP-Page-273x300.jpg" alt="" title="Lifecycle of a JSP Page" width="273" height="300" class="size-medium wp-image-98" /></a><p class="wp-caption-text">Lifecycle of a JSP Page</p></div><br />
<br />
<span id="more-99"></span></p>
<div style="display:block;float:right;padding:5px;">
<script type="text/javascript"><!--
google_ad_client = "pub-9680100702980837";
/* big_sq_red */
google_ad_slot = "4937024846";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p><strong>Java Source Generation and Compilation</strong><br />
<br />
•	When a Web container receives a request for a JSP file, it passes the request to the JSP processor . </p>
<p>•	If this is the first time the JSP file has been requested or if the compiled copy of the JSP file is not found, the JSP compiler generates and compiles a Java source file for the JSP file. </p>
<p>•	The JSP processor puts the Java source and class file in the JSP processor directory.<br />
•	By default, the JSP syntax in a JSP file is converted to Java code that is added to the service() method of the generated class file.<br />
<br />
<strong>RequestProcessing</strong><br />
<br />
•	After the JSP processor places the servlet class file in the JSP processor directory, the Web container creates an instance of the servlet and calls the servlet service() method in response to the request. </p>
<p>•	All subsequent requests for the JSP are handled by that instance of the servlet.</p>
<p>•	When the Web container receives a request for a JSP file, the engine checks to determine whether the JSP file (.jsp) has changed since it was loaded.<br />
•	If it has changed, the Web container reloads the updated JSP file </p>
<p>•	 The newly loaded servlet instance receives the client request.<br />
<br />
<strong>Termination</strong><br />
<br />
•	When the Web container no longer needs the servlet or a new instance of the servlet is being reloaded, the Web container invokes the servlet&#8217;s destroy() method. </p>
<p>•	The Web container can also call the destroy() method if the engine needs to conserve resources or a pending call to a servlet service() method exceeds the timeout. </p>
<p>•	The <a href="http://freeonlineprogrammingtutorials.com">Java Virtual Machine</a> performs garbage collection after the destroy.</p>
]]></content:encoded>
			<wfw:commentRss>http://freeonlineprogrammingtutorials.com/lifecycle-of-a-jsp-page/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dealing with Java Server Page and Servlets</title>
		<link>http://freeonlineprogrammingtutorials.com/dealing-with-java-server-page-and-servlets</link>
		<comments>http://freeonlineprogrammingtutorials.com/dealing-with-java-server-page-and-servlets#comments</comments>
		<pubDate>Mon, 31 May 2010 10:11:49 +0000</pubDate>
		<dc:creator>WebProgrammer</dc:creator>
				<category><![CDATA[JSP]]></category>
		<category><![CDATA[Dealing with Java Server Page and Servlets]]></category>

		<guid isPermaLink="false">http://freeonlineprogrammingtutorials.com/?p=96</guid>
		<description><![CDATA[Let&#8217;s see how to deal with Java Server Page and Servlets, and their uses&#8230; • Read form data • Read HTTP request headers Dealing with Java Server Page and Servlets • Set HTTP status codes and response headers • Use cookies and session tracking • Share data among servlets • Remember data between requests • [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s see how to deal with Java Server Page and Servlets, and their uses&#8230;<br />
<more><br />
•	Read form data<br />
•	Read HTTP request headers<br />
<br />
<strong>Dealing with <a href="http://freeonlineprogrammingtutorials.com">Java Server Page </a>and Servlets</strong><br />
</p>
<div style="display:block;float:right;padding:5px;">
<script type="text/javascript"><!--
google_ad_client = "pub-9680100702980837";
/* big_sq_red */
google_ad_slot = "4937024846";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>•	Set HTTP status codes and response headers</p>
<p>•	Use cookies and session tracking</p>
<p>•	Share data among servlets</p>
<p>•	Remember data between requests</p>
<p>•	Get fun, high-paying jobs</p>
]]></content:encoded>
			<wfw:commentRss>http://freeonlineprogrammingtutorials.com/dealing-with-java-server-page-and-servlets/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An alternative JSP syntax</title>
		<link>http://freeonlineprogrammingtutorials.com/an-alternative-jsp-syntax</link>
		<comments>http://freeonlineprogrammingtutorials.com/an-alternative-jsp-syntax#comments</comments>
		<pubDate>Mon, 31 May 2010 09:59:37 +0000</pubDate>
		<dc:creator>WebProgrammer</dc:creator>
				<category><![CDATA[JSP]]></category>
		<category><![CDATA[An alternative JSP syntax]]></category>

		<guid isPermaLink="false">http://freeonlineprogrammingtutorials.com/?p=91</guid>
		<description><![CDATA[Here&#8217;s the example of JSP syntax < html > < body > < %! String name = new String(“Growel”); % > < %! public String getName() { return name;} % > Hello < B > < jsp:expression > getName() < /jsp:expression > < /B > < /body > < /html > • This example contains [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the example of <a href="http://freeonlineprogrammingtutorials.com">JSP syntax</a><br />
<span id="more-91"></span></p>
<div style="display:block;float:right;padding:5px;">
<script type="text/javascript"><!--
google_ad_client = "pub-9680100702980837";
/* big_sq_red */
google_ad_slot = "4937024846";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>
< html ><br />
< body ><br />
< %! String name = new String(“Growel”); % ><br />
< %! public String getName() { return name;} % ><br />
Hello < B ><br />
< jsp:expression > getName() < /jsp:expression ><br />
< /B ><br />
< /body ><br />
< /html ><br />
<br />
•	This example contains HTML tags.</p>
<p>•	A string object, name contains the value “Growel”</p>
<p>•	A function getName() returns a String.</p>
<p>•	The String is printed using JSP expression.<br />
<br />
<strong>To run this example…</strong><br />
<br />
•	Save this file SimpleJSP.jsp in<br />
–	J2EE_HOME%\public_html\JSPExamples\</p>
<p>•	Start the J2EE server by invoking j2ee –verbose command in command prompt.<br />
–	C:\j2sdkee1.3.1\bin>j2ee –verbose</p>
<p>•	Now open a browser and navigate to</p>
<p>http://localhost:8000/JSPExamples/SampleJSP.jsp</p>
<p>•	The output is similar to:</p>
]]></content:encoded>
			<wfw:commentRss>http://freeonlineprogrammingtutorials.com/an-alternative-jsp-syntax/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Directives in JSP</title>
		<link>http://freeonlineprogrammingtutorials.com/directives-in-jsp</link>
		<comments>http://freeonlineprogrammingtutorials.com/directives-in-jsp#comments</comments>
		<pubDate>Sat, 29 May 2010 04:59:00 +0000</pubDate>
		<dc:creator>WebProgrammer</dc:creator>
				<category><![CDATA[JSP]]></category>
		<category><![CDATA[Directives in JSP]]></category>

		<guid isPermaLink="false">http://freeonlineprogrammingtutorials.com/?p=37</guid>
		<description><![CDATA[directives of JSP • Directives are used to control how the Web container translates and executes the JSP page • They do not directly produce any visible output, but tell the engine what to do with the rest of the JSP page. • JSP directives are always enclosed within the < %@ ... % > [...]]]></description>
			<content:encoded><![CDATA[<p>directives of <a href="http://freeonlineprogrammingtutorials.com">JSP</a><br />
</p>
<p>•	Directives are used to control how the Web container translates and executes the JSP page</p>
<p>•	They do not directly produce any visible output, but tell the engine what to do with the rest of the JSP page.</p>
<p>•	JSP directives are always enclosed within the < %@ ... % > tag.</p>
<p>•	The general Syntax of a Directive<br />
		< %@ directive {attribute =“value”} % ><br />
•	The two primary directives are page and include.</p>
<p>•	Page directive</p>
<p>•	Include directive</p>
<p>•	Taglib Directive</p>
]]></content:encoded>
			<wfw:commentRss>http://freeonlineprogrammingtutorials.com/directives-in-jsp/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

