<?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>Java Interview Questions &#187; Explain Jsp Declaration</title>
	<atom:link href="http://www.bestjavainterviewquestions.com/category/explain-jsp-declaration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bestjavainterviewquestions.com</link>
	<description>Java Interview Questions &#124; Core Java Interview Questions &#124; Advanced Java Interview Questions &#124; EJB Interview Questions &#124; J2EE Interview Questions &#124; Hibernate Interview Questions</description>
	<lastBuildDate>Fri, 03 Feb 2012 10:23:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Explain JSP Declaration</title>
		<link>http://www.bestjavainterviewquestions.com/explain-jsp-declaration/</link>
		<comments>http://www.bestjavainterviewquestions.com/explain-jsp-declaration/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 18:06:02 +0000</pubDate>
		<dc:creator>Ramakrishna</dc:creator>
				<category><![CDATA[Explain Jsp Declaration]]></category>
		<category><![CDATA[jsp declaration]]></category>

		<guid isPermaLink="false">http://www.bestjavainterviewquestions.com/?p=407</guid>
		<description><![CDATA[Jsp Declarations: As part of Jsp&#8217;s we can use declarations using the following Syntax: &#60;%! Declarations %&#62; As part of the Declarations we can declare the static variables, instance variables and provide the static methods and instance methods For Ex: &#60;%! int i=10; Static int j=10; public void mone() { System.out.println(i); System.out.println(j); } %&#62; Ex:-2) [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Jsp </strong><strong>Declarations</strong><strong>:</strong></p>
<p>As part of Jsp&#8217;s we can use declarations using the following Syntax:</p>
<p><strong>&lt;%!</strong></p>
<p><em><strong>Declarations</strong></em></p>
<p><strong>%&gt;</strong></p>
<p>As part of the Declarations we can declare the static variables, instance variables and provide the static methods and instance methods</p>
<p><strong><em>For Ex:</em></strong></p>
<p><strong><em>&lt;%! int i=10;<br />
Static int j=10;<br />
public void mone()<br />
{<br />
System.out.println(i);<br />
System.out.println(j);<br />
}<br />
%&gt;</em></strong></p>
<p><strong>Ex:-2)</strong></p>
<p><em><strong>&lt;%!<br />
String name = &#8220;Mark&#8221;;<br />
String date = &#8220;28th April, 2004&#8243;;<br />
%&gt;</strong></em></p>
<p><strong>Note:</strong> We can&#8217;t use implicit variables as part of the methods provided in Declarations as the implicit variables are part of  <em> &#8220;_jspservice()&#8221;</em></p>
<p><strong>&#8211;&gt; </strong>We can&#8217;t override the method in the _jspservice</p>
<p><strong>&#8211;&gt; </strong>We can override the methods in the _jspinit() &amp; _jspdestroy()</p>
<p>We can provide(override) Jsp init,Jsp destroy as part of declarations</p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li>September 2, 2008 -- <a href="http://www.bestjavainterviewquestions.com/define-session-tracking/" title="Define Session Tracking">Define Session Tracking</a> (0)</li><li>October 16, 2008 -- <a href="http://www.bestjavainterviewquestions.com/write-a-short-notes-on-tomcat/" title="Write a short notes on TOMCAT">Write a short notes on TOMCAT</a> (0)</li><li>June 17, 2008 -- <a href="http://www.bestjavainterviewquestions.com/awt-interview-questions-2/" title="AWT Interview Questions">AWT Interview Questions</a> (0)</li><li>September 2, 2008 -- <a href="http://www.bestjavainterviewquestions.com/explain-session-destroy-in-servlets/" title="Explain session destroy in Servlets">Explain session destroy in Servlets</a> (0)</li><li>September 20, 2008 -- <a href="http://www.bestjavainterviewquestions.com/cookie-examples-2/" title="Cookie Examples">Cookie Examples</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/explain-jsp-declaration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

