Forums Register Login

swing to servlet communication

+Pie Number of slices to send: Send
hi everybody,

can anybody help to solve my problem?
I want swing to servlet communication.I will enter data in the GUI and if i click submit that data has to be stored through servlet.

For ex,in JSP,html the data we entered will be get through
request.getParameter("");

From Swings to Servlets how it will be done?

If anybody knows then help me.Its needed immediately.
+Pie Number of slices to send: Send
short answer: I don't think it can be done.

Not sure if this is possible, but the way that i can think of is like this.
- Need to map servlet to a url.
- Open a HttpURLConnection from Swing using the url with your parameters in the url,something like:
http://yourapp/func1/servlet1.do?name=rancher&age=10

Seems a bit awkward, i think.
Not even sure if its the correct way.
Just my 2 cents worth.

Hope this helps.


[ December 21, 2006: Message edited by: Terry Ong ]
+Pie Number of slices to send: Send
The way to do it is described here. (It works the same way for applets and standalone applications.)
+Pie Number of slices to send: Send
Thanks for the tip. Ulf =)
Any sufficiently advanced technology will be used as a cat toy. And this tiny ad contains a very small cat:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 3749 times.
Similar Threads
installer for standalone application
reading data from excel sheet through servlets in linux
how to connect to Oracle through jdbc
Embed Swing Inside Servlet
Swing with Servlets?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:38:09.