It's not a secret anymore!*
The moose likes Tomcat and the fly likes Send data between two app in the same Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Send data between two app in the same Tomcat " Watch "Send data between two app in the same Tomcat " New topic
Author

Send data between two app in the same Tomcat

Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 331
In my Tomcat I have the next situation:

when I type www.mysite.com I go to the Tomcat welcome file like index.jsp. Then I need from that *.jsp send his URL for example "www.mysite.com?code=343" to my own app which
is located in the same Tomcat6.

Also in my index.jsp I want to include classes from the other WAR like this



Now obviously it launches the error:



What way could I work with two wars like if they would be one?


I have an app which depends from other. The main one is located in C:\home\tomcat\webapps and the dependant one is located in C:\java\eclipse\workspace.

Is posible interconect both?





Many Thanks

Regards,
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Send data between two app in the same Tomcat
 
Similar Threads
Tomcat 6.0.X (could be 18, 26 or 32 tried all 3)
Multiple web applications, one virtual host, access logging
Session replication with Tomcat 6
Tomcat lbfactor weight not working
Need help in build applications using ant : getting exception