This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Servlets and the fly likes passing variables to application in different path Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "passing variables to application in different path" Watch "passing variables to application in different path" New topic
Author

passing variables to application in different path

preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
Hi,

I am having two programs in different path.One is servlet named "Freedialer.java" and is in path /usr/local/apache-tomcat/webapps/NewVoicebroadcast/WEB-INF/classes and another program "Sample.java" is in /var/lib/asterisk/agi-bin/.Is it possible to pass a variable from "Freedialer.java" to "Sample.java" which are in different paths?

Please help me to do this.

Thanks
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32830
    
    4
Too difficult a question for us beginners.
Moving.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2896
    
    1

Create an instance of "Sample" class in "Freedialer" class and pass variables, but trick is making "Sample" class visible to servlet "Freedialer " by putting that "Sample.java" in classpath, i.e in directory '/WEB-INF/lib'


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: passing variables to application in different path
 
Similar Threads
Finding class files using the -cp command
Debuging problem in eclipse
what is the different between PATH and CLASSPATH ?
Javac.exe not staying open
how to set up java in linux?