This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Tomcat and the fly likes accessing from different web apps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "accessing from different web apps" Watch "accessing from different web apps" New topic
Author

accessing from different web apps

sammaiah kyatham
Ranch Hand

Joined: Aug 03, 2003
Posts: 104
Hi,
I've two web applications like

Application1:

webapps\app1
app1.jsp

Application2:

webapps\app2
app2.jsp

can I access app1.jsp in app2.jsp?

Thnx,
sam
[ February 14, 2006: Message edited by: sammaiah kyatham ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
You can access it directly, i.e. through a client-side redirect, without problems. To get a RequestDispatcher for a different web app, you need to set the "crossContext" attribute (see the Tomcat documentation)


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: accessing from different web apps
 
Similar Threads
(Web Archieve) war to war communication
JSP doesn't work in Linux server.
Multiple apps in Tomcat
ok new question...
passing session values between two web application