This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Invoking another java program from a servlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Invoking another java program from a servlet?" Watch "Invoking another java program from a servlet?" New topic
Author

Invoking another java program from a servlet?

Manoj Singh
Ranch Hand

Joined: Aug 10, 2000
Posts: 41
Hi all !
Is it possible to invoke a Java class(not a servlet) from within a servlet and than pass the result back to this or anyother servlet which displays it on the web
Need a reply urgently
ThanX
Manoj


Sun Certified Java 2 Programmer<BR>" Only those who will risk going too far can possibly find out how far one can go "
parul patidar
Ranch Hand

Joined: Sep 07, 2001
Posts: 53
>>Is it possible to invoke a Java class(not a servlet) from
>>within a servlet and than pass the result back to this
yes it is possible
or anyother servlet which displays it on the web
not sure but it should be try using URLConnection in ur Java class (not a servlet)
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
Servlets have no particular restriction on what they can do - servlet applications typically consist of lots of classes, in fact it is bad form to cram all functionality into a single servlet class.
Communicating with other running Java applications is easily done with RMI.
Bill
------------------
author of:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Invoking another java program from a servlet?
 
Similar Threads
get HttpServletRequest from java class
can thread with servlet class
comparing 2 date objects...very urgent
calling core java program ffrom servlet
call servlet from simple java file.