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 Android Security Essentials Live Lessons this week in the Android 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: 12761
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.

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