<?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; jsp implicit variables</title>
	<atom:link href="http://www.bestjavainterviewquestions.com/category/jsp-implicit-variables/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, 30 Jul 2010 06:00:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Define Implicit Variables in JSP</title>
		<link>http://www.bestjavainterviewquestions.com/define-implicit-variables-in-jsp/</link>
		<comments>http://www.bestjavainterviewquestions.com/define-implicit-variables-in-jsp/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 16:10:54 +0000</pubDate>
		<dc:creator>Ramakrishna</dc:creator>
				<category><![CDATA[jsp implicit variables]]></category>
		<category><![CDATA[implicit objects in jsp]]></category>

		<guid isPermaLink="false">http://www.bestjavainterviewquestions.com/?p=386</guid>
		<description><![CDATA[Q) What are the implicit variables? A) Implicit variables are objects that are created by the web container and contain information related to a particular request, page, or application. They are: &#8211;&#62; request &#8211;&#62; response &#8211;&#62; pageContext &#8211;&#62; session &#8211;&#62; application &#8211;&#62; out &#8211;&#62; config &#8211;&#62; page &#8211;&#62; exception Request:- It is also an implicit [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Q) What are the implicit variables?</strong></p>
<p><strong>A) </strong>Implicit variables are objects that are created by the web container and contain information related to a particular request, page, or application. They are:</p>
<p>&#8211;&gt; request<br />
&#8211;&gt;  response<br />
&#8211;&gt;  pageContext<br />
&#8211;&gt;  session<br />
&#8211;&gt;  application<br />
&#8211;&gt;  out<br />
&#8211;&gt;  config<br />
&#8211;&gt;  page<br />
&#8211;&gt;  exception</p>
<p><strong><em>Request:</em></strong>-</p>
<p>It is also an implicit object of class HttpServletRequest class and using this object request parameters can be accessed.</p>
<p>For e.g. in case of retrieval of parameters from last form is as follows:</p>
<p>request.getParameters(“Name”);</p>
<p>Where “Name” is the form element.</p>
<p><strong><em>Response:-</em></strong></p>
<p>It is also an implicit object of class HttpServletResponse class and using this object response(sent back to browser) parameters can be modified or set.</p>
<p>For e.g. in case of modifying the HTTP headers you can use this object.</p>
<p>Response.setBufferSize(“50”);</p>
<p><em><strong>Session:</strong></em>-</p>
<p>Session object is of class HttpSession and used to maintain the session information. It stores the information in Name-Value pair.</p>
<p>For e.g.</p>
<p>session.setValue(“Name”,”Jakes”);<br />
session.setValue(“Age”,”22”);</p>
<p><strong><em>Application:</em></strong>-</p>
<p>This object belongs to class SevletContext and used to maintain certain information throughout the scope of Application.</p>
<p>For e.g.</p>
<p>Application.setValue(“servername”,”www.myserver.com”);</p>
<p><strong><em>PageContext:</em></strong>-</p>
<p>This object is of class pageContext and is utilized to access the other implicit objects.</p>
<p><em><strong>Out:</strong></em>-</p>
<p>This object is instantiated implicitly from JSP Writer class and can be used for displaying anything within delimiters.</p>
<p>For e.g. out.println(“Hi Buddy”);</p>
<p><strong><em>Page</em></strong> :-</p>
<p><strong> Syntax : &lt; %@ page Language=”Java” extends=”&lt;Class name&gt;” import=”&lt;class&gt; or &lt;package&gt;”  %&gt;</strong></p>
<p>Attributes:<br />
a.     Language = “Java”<br />
b.     Import = “Class”<br />
c.      Buffersize = “”<br />
d.     Scope = “REQUEST/PAGE/SESSION/APPLICATION”<br />
e.     And etc….</p>
<p>Page directive is aimed to define certain attribute of a JSP page for e.g. Language of the page in which the page content should be written , which class to be imported so that it can be used within the JSP page.</p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li><a href="http://www.bestjavainterviewquestions.com/explain-java-comments/" title="Explain Java Comments"><img src="Array" alt="Explain Java Comments" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/naming-conventions-in-java/" title="Naming Conventions in Java"><img src="Array" alt="Naming Conventions in Java" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/what-are-synchronized-methods-and-synchronized-statements/" title="What are synchronized methods and synchronized statements?"><img src="Array" alt="What are synchronized methods and synchronized statements?" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/explain-session-tracking-using-servlet/" title="Explain Session tracking using Servlet"><img src="Array" alt="Explain Session tracking using Servlet" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/jsp-interview-questions-2/" title="JSP Interview Questions"><img src="Array" alt="JSP Interview Questions" /></a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/define-implicit-variables-in-jsp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
