This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Passing Request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Passing Request" Watch "Passing Request" New topic
Author

Passing Request

muthulingam Jayakanthan
Ranch Hand

Joined: Feb 27, 2005
Posts: 43
Help!!

Using HttpSession object is the only way to forwarding request from one servlet to another within two different web application.
Is that right, pelase verify this.
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
Negative!

To do something like this, you 1) need to get the actual context, then 2) get the request dispatcher for that context to include/forward to the resource. Check this out (no guarantees):


Tada! Compile and be dazzled.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
muthulingam Jayakanthan
Ranch Hand

Joined: Feb 27, 2005
Posts: 43
Hi nethaniel,
I read one para in the Servlet 2.4 spec saying.

"Context attributes are local to the JVM in which they were created. This prevents ServletContext attributes from being a shared memory store in a distributed container. When information needs to be shared between servlets running in a distributed environment, the information should be placed into a session"

Now I got totally confused. Is this paragraph information about. please help
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing Request