aspose file tools*
The moose likes Servlets and the fly likes Request Scope Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Request Scope " Watch "Request Scope " New topic

Request Scope

rajiv shaw

Joined: Jun 25, 2008
Posts: 3
is it possible to maintain request scope between different JVM (by using request dispatcher)?
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

I don't think so unless you explicitly pass/send it on as the RequestDispatcher works for a single JVM.

Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12675
Since the request object is managed by the servlet container, it makes no sense to try to pass the object to another container. It is easy enough to extract all of the data content to a serializable collection object and pass that around.

You should NEVER try to hang on to a request object past the end of one request-response cycle.


Java Resources at
I agree. Here's the link:
subject: Request Scope
Similar Threads
Got a qucik question
proper EL access using beans, perhaps FrontMan specific
Display messages from controller on top of JSP page
Is it possible to pass an object into a JSP using <jsp:include>?
two pages, single session bean problem