File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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: 42965
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: 17276

"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!