A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Joined: Feb 08, 2009
Feb 08, 2009 22:13:46
guys, we can forward request using request's or context's requestDispatcher.In which case we will use request, and in which case we will use context? also whats the difference between / and ../. Please help
Author and ninkuma
Joined: Jan 10, 2002
Feb 08, 2009 22:24:19
First, a few things that will help you out here on the Ranch.
Please be sure to take the time to compose descriptive subjects for your posts;
for more information.
Using a title of "servlets" in a forum completely dedicated to questions on
isn't very helpful.
Please go back and change your post to add a more meaningful subject by clicking the
Secondly, not everyone who helps people out here is a "guy".
Asking smart questions
Books by Bear
Joined: Sep 20, 2007
Feb 08, 2009 23:09:32
We can forward a request either by using the
interface or the
interface, the point when to use
is that the
looks for the resources in the same context (same webapp) to which the invoking
Moreover the pathname used in the
must begin with a "/" which is an absolute path.
The pathname used in the
interface can be an absolute path or a relative path means it can start with “/” or “../..”.
K. Anutosh<br /> <br />SCJP 1.4<br />SCWCD 1.4<br />OCA (Paper I)
Joined: Oct 08, 2006
Feb 09, 2009 09:56:19
That kind of questions are usually answered in the API docs.
Please familiarize yourself with the API docs and learn to find/understand them.
Edit: links fixed, UBB parser didn´t seem to take the last parenthesis in the generated URL.
I agree. Here's the link:
how to instantiate anonymous inner class?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014