Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to change my client from JSP to Swing??

 
Siddharth Ramavat
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I have made a chat application using jsp and servlets.. It is running smoothly..Now If i want to change my client side from jsp to swing.. then is it possible to do so by using the same servlets and the same class that are using by the servlet? Tell me the necessary steps to do the same..

Thank You,
Siddharth
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the httpclient libraries at:
http://jakarta.apache.org/commons/httpclient.

With them, you should be able to make the same HTTP calls from your Swing app that you're currently making from the browser.

Instead of returning HTML, you may want to have your servlet stream some Java objects to the Swing app.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic