This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Accessing servlet in swing application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Accessing servlet in swing application
 
Similar Threads
Context Share between 2 Web Apps
servlet validation?
Question on pausing a loop.
accessing servlet in a swing application
What is the best way to show a video in a swing Application