| Author |
Call JFrame From JSP
|
Steve Dyke
Ranch Hand
Joined: Nov 16, 2004
Posts: 1254
|
|
|
How can I call and display a JFrame for a JSP?
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
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
Joined: Nov 16, 2004
Posts: 1254
|
|
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
Joined: Jan 10, 2002
Posts: 56205
|
|
|
Please be sure to post JSF question in the JSF forum.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: Call JFrame From JSP
|
|
|