Forums Register Login

Data passing from servlet to swing

+Pie Number of slices to send: Send
How can get a data(/information) from server using servlet and pass it to swing.simillarly from swing to servlet. i.e in MVC architecture can i use swing or applet instead of JSP to act as View mode
+Pie Number of slices to send: Send
HTTP to a servlet can be done through the HttpUrlConnection class, or Jakartas HttpClient package, if you need some extra functionality. You can serialize objects over such connection. A web services approach would work as well.

I guess technically this might still be considered an MVC approach, although it's probably closer to correct to call the server components the business/data access layer.
+Pie Number of slices to send: Send
"yspl india"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it

here.

Thanks! and welcome to the JavaRanch!

Mark
Evildoers! Eat my justice! And this tiny ad's justice too!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 953 times.
Similar Threads
Swing - servlet communication
swing concept
servlet to swing
How to communicate with servlets from Swing...
Communication between a Swing Client and a Servlet via HttpURLConnection
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 07:03:28.