aspose file tools*
The moose likes Servlets and the fly likes passing variables to application in different path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
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: 38851
    
  23
Too difficult a question for us beginners.
Moving.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    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://aspose.com/file-tools
 
subject: passing variables to application in different path