File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing variables to application in different path

 
preethi Ayyappan
Ranch Hand
Posts: 518
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 47232
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too difficult a question for us beginners.
Moving.
 
Sagar Rohankar
Ranch Hand
Posts: 2905
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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'
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic