File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android 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: 41148
    
  45
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 - my free Android networking tools app
 
 
subject: accessing from different web apps
 
Similar Threads
JSP doesn't work in Linux server.
(Web Archieve) war to war communication
passing session values between two web application
ok new question...
Multiple apps in Tomcat