aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Accessing servlet in swing application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Accessing servlet in swing application " Watch "Accessing servlet in swing application " New topic
Author

Accessing servlet in swing application

gayatri sabari
Greenhorn

Joined: Mar 14, 2006
Posts: 7
I want to access a servlet over the network from inside my Swing application. Can anyone help me to do this?
Nadeem Awad
Ranch Hand

Joined: Jan 09, 2005
Posts: 74
Originally posted by gayatri sabari:
I want to access a servlet over the network from inside my Swing application. Can anyone help me to do this?


You can perform an HTTP Get request to call your servlet. Here is a sample:


I think you can also perform a POST request, but I'm not sure how. You can google it.

Hope this helps,


Share Knowledge to gain it.<br /> <br />SCJP 1.2, SCDJWS 1.4, SCWCD 1.4, SCBCD 1.3, ICAD
gayatri sabari
Greenhorn

Joined: Mar 14, 2006
Posts: 7
Nadeem ,i have to perform some servlet validation and i have to send those results to that swing application again.i will try this code and i will reply,thank u..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing servlet in swing application