File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 12781
    
    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?