aspose file tools*
The moose likes Servlets and the fly likes application servlet communication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "application servlet communication" Watch "application servlet communication" New topic
Author

application servlet communication

Suman Dass
Greenhorn

Joined: Feb 20, 2002
Posts: 28
Hello!
I need my java application to communicate with my servlet probably using URLConnection class. Say I pass two parameters 'a','b' from the application and the servlet has a business logic that computes and returns the sum of 'a' and 'b' but not to a browser. How can I do it?
TIA
raimondas zemaitis
Ranch Hand

Joined: Feb 23, 2001
Posts: 104
I would use RMI.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
You will have to imitate the way a browser sends a GET request to a servlet, then parse the results out of the response you get.
Look at examples of GET URLs such as the one presently showing in your address window.
Bill


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: application servlet communication
 
Similar Threads
Servlet Chaining
where to add jar files
Steal a session
changing http get request to post request
welcome file for virtual/logical path