Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing variables to application in different path

 
preethi Ayyappan
Ranch Hand
Posts: 518
  • 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: 49756
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too difficult a question for us beginners.
Moving.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • 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'
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic