• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP and AWT / Swing

 
Sam Smoot
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can a JSP page incorpoprate AWT and Swing components? I was looking at the JSpinner class and it's pretty cool...
Thanks!
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP generates HTML or similar text.
The only way a HTML page can incorporate AWT or Swing components is with a Java applet. You can certainly use JSP to generate the page but you have to program the applet separately.
Bill
 
Sam Smoot
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll have to play with it a little and see what happens.
Thanks!
 
hanumanth reddy
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you looking for awt functionality in JSp then try java server faces which is still in early access but which has got great future
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!