Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Call JFrame From JSP

 
Steve Dyke
Ranch Hand
Posts: 1679
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I call and display a JFrame for a JSP?
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remember that JSP runs in your application server and produces HTML for the browser to display. So if you just did something like displaying a JFrame from your JSP code, at best that JFrame would appear on the server. Which is probably in a back room somewhere with nobody looking at it.

You could perhaps have your HTML include an applet, which would do whatever your JFrame was supposed to do. But before you decide that's a good idea you should really tell us why you want this JFrame and what it's supposed to achieve. It might even be that you should have your HTML include some Javascript that displays an alert box. But it's impossible to say what's your best approach without knowing why you want to do that.
 
Steve Dyke
Ranch Hand
Posts: 1679
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For starters I have an input box on a JSF page that takes a drawing type from a fixed list. I have a list control that displays the options. Instead of having the list on the form it seems it look better if there was a pop-up list to display the options.

Could I have an applet that held the list an call that applet on the fly? Then click an option from the applet to populate the form textbox.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65220
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to post JSF question in the JSF forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic