This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Servlets and the fly likes Data passing from servlet to swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Data passing from servlet to swing" Watch "Data passing from servlet to swing" New topic

Data passing from servlet to swing

yspl india

Joined: Aug 08, 2005
Posts: 8
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
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
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.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17275

"yspl india"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it


Thanks! and welcome to the JavaRanch!


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Data passing from servlet to swing
It's not a secret anymore!