This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Communication from two different web apps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Communication from two different web apps" Watch "Communication from two different web apps" New topic
Author

Communication from two different web apps

Massimo Giusti
Greenhorn

Joined: Jan 09, 2003
Posts: 9
Hi all,
I'm working with Tomcat 4.0 and I build two web applications: back-app and front-app!
I have created a package "job.authentication" in the back-app and I want use this package in a jsp in the front-app.
But when I try to import this package I receveid the error:
Package job.authentication not found in import
I shouldn't create a library .jar for classes in back-app (then refer this in the classpath), because I'm deployng both application and there are continuos changes.
Have you an idea for resolve my problem?
Thanks in advance,
MaX
Roger Graff
Ranch Hand

Joined: May 29, 2001
Posts: 112
Originally posted by Massimo Giusti:
I shouldn't create a library .jar for classes in back-app (then refer this in the classpath), because I'm deployng both application and there are continuos changes.
Have you an idea for resolve my problem?
Thanks in advance,
MaX

If I understand you correctly, you do not want to put seperate copies of the job.authentication classes under each application context.
Perhaps you could jar your class files and place them under the /tomcat/common/lib directory. You may have to play around with your environment variables (classpath or other) to make this work.
[ March 13, 2003: Message edited by: Roger Graff ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Communication from two different web apps
 
Similar Threads
Communication from two different web apps
Suffering Reverse(s) [Servlets-2]
In which package should be a Listener
Request input stream
Reading from and writing to a file