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
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: 41838
    
  63
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: accessing from different web apps