• Post Reply Bookmark Topic Watch Topic
  • New Topic

Data passing from servlet to swing  RSS feed

 
yspl india
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!