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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Request Scope " Watch "Request Scope " New topic
Author

Request Scope

rajiv shaw
Greenhorn

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: 3381

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
Rancher

Joined: Mar 22, 2000
Posts: 12981
    
    5
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.

Bill
 
jQuery in Action, 3rd edition
 
subject: Request Scope
 
It's not a secret anymore!