• Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing in JSP

 
S.R.K.Vivek Raju
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Is it possible to create a front end in Swing and write the back end in the same java file and then use the .java file as bean in a JSP through a jsp:usebean tag.
Please Suggest

With Regards
S.R.K.Vivek Raju.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swing is a clientside GUI technology. JSP are a serverside technology. You can't mix the two.

What you can do is write an applet using Swing and serve it with your JSP. If the applet needed to use some of the serverside logic, it would have to communicate with servlets using the java.net.* stuff.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!