<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Difference between ServletRequest.getRequestDispatcher and ServletContext.getRequestDispatcher</title>
	<atom:link href="http://javapapers.com/servlet/difference-between-servletrequestgetrequestdispatcher-and-servletcontextgetrequestdispatcher/feed/" rel="self" type="application/rss+xml" />
	<link>http://javapapers.com/servlet/difference-between-servletrequestgetrequestdispatcher-and-servletcontextgetrequestdispatcher/</link>
	<description>Blog on core java, servlets, jsp and design patterns.</description>
	<lastBuildDate>Mon, 06 Feb 2012 18:56:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Shitansu</title>
		<link>http://javapapers.com/servlet/difference-between-servletrequestgetrequestdispatcher-and-servletcontextgetrequestdispatcher/#comment-7914</link>
		<dc:creator>Shitansu</dc:creator>
		<pubDate>Wed, 19 Oct 2011 20:35:40 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/servlet-interview-questions/difference-between-servletrequestgetrequestdispatcher-and-servletcontextgetrequestdispatcher/#comment-7914</guid>
		<description>Oh Yes,

Now I got it. The difference is only the PATH. 

ServletRequest.getRequestDispatcher() is taking the relative path of the url as argument 
(Ex- /home.jsp)

ServletContext.getRequestDispatcher() is taking the absolute path of the url as argument.
(Ex- /MyPackage/home.jsp)

Nice :-) ...</description>
		<content:encoded><![CDATA[<p>Oh Yes,</p>
<p>Now I got it. The difference is only the PATH. </p>
<p>ServletRequest.getRequestDispatcher() is taking the relative path of the url as argument<br />
(Ex- /home.jsp)</p>
<p>ServletContext.getRequestDispatcher() is taking the absolute path of the url as argument.<br />
(Ex- /MyPackage/home.jsp)</p>
<p>Nice :-) &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shitansu</title>
		<link>http://javapapers.com/servlet/difference-between-servletrequestgetrequestdispatcher-and-servletcontextgetrequestdispatcher/#comment-7913</link>
		<dc:creator>Shitansu</dc:creator>
		<pubDate>Wed, 19 Oct 2011 20:27:31 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/servlet-interview-questions/difference-between-servletrequestgetrequestdispatcher-and-servletcontextgetrequestdispatcher/#comment-7913</guid>
		<description>Hi,

Can you please explain this, by giving some example. I really did not get anything. :(</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Can you please explain this, by giving some example. I really did not get anything. :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashok</title>
		<link>http://javapapers.com/servlet/difference-between-servletrequestgetrequestdispatcher-and-servletcontextgetrequestdispatcher/#comment-6795</link>
		<dc:creator>ashok</dc:creator>
		<pubDate>Wed, 03 Aug 2011 10:38:33 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/servlet-interview-questions/difference-between-servletrequestgetrequestdispatcher-and-servletcontextgetrequestdispatcher/#comment-6795</guid>
		<description>request.getRequestDispatcher(“url”) is for chaing  two servlets with in the same web application  and servletContext.getRequestDispacher(“destination url”) is for chainig two web applications with in the same server/two different servers</description>
		<content:encoded><![CDATA[<p>request.getRequestDispatcher(“url”) is for chaing  two servlets with in the same web application  and servletContext.getRequestDispacher(“destination url”) is for chainig two web applications with in the same server/two different servers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashok</title>
		<link>http://javapapers.com/servlet/difference-between-servletrequestgetrequestdispatcher-and-servletcontextgetrequestdispatcher/#comment-6794</link>
		<dc:creator>ashok</dc:creator>
		<pubDate>Wed, 03 Aug 2011 10:36:44 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/servlet-interview-questions/difference-between-servletrequestgetrequestdispatcher-and-servletcontextgetrequestdispatcher/#comment-6794</guid>
		<description>request.getRequestDispatcher(&quot;url&quot;) is for chaing to servlets
and servletContext.getRequestDispacher(&quot;destination url&quot;) is for chainig two web applications with in the same server/two different servers</description>
		<content:encoded><![CDATA[<p>request.getRequestDispatcher(&#8220;url&#8221;) is for chaing to servlets<br />
and servletContext.getRequestDispacher(&#8220;destination url&#8221;) is for chainig two web applications with in the same server/two different servers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://javapapers.com/servlet/difference-between-servletrequestgetrequestdispatcher-and-servletcontextgetrequestdispatcher/#comment-5017</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 09 May 2011 09:25:23 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/servlet-interview-questions/difference-between-servletrequestgetrequestdispatcher-and-servletcontextgetrequestdispatcher/#comment-5017</guid>
		<description>servletcontext.ReuestDispatcher() it locates the resouce relative to the context path
servletrequest.ReuestDispatcher(): it locates the resource relative to the request path</description>
		<content:encoded><![CDATA[<p>servletcontext.ReuestDispatcher() it locates the resouce relative to the context path<br />
servletrequest.ReuestDispatcher(): it locates the resource relative to the request path</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepak</title>
		<link>http://javapapers.com/servlet/difference-between-servletrequestgetrequestdispatcher-and-servletcontextgetrequestdispatcher/#comment-3029</link>
		<dc:creator>Deepak</dc:creator>
		<pubDate>Tue, 11 Jan 2011 12:52:11 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/servlet-interview-questions/difference-between-servletrequestgetrequestdispatcher-and-servletcontextgetrequestdispatcher/#comment-3029</guid>
		<description>Please make it more clear...I cant understand here what it means...thnx</description>
		<content:encoded><![CDATA[<p>Please make it more clear&#8230;I cant understand here what it means&#8230;thnx</p>
]]></content:encoded>
	</item>
</channel>
</rss>

