aspose file tools*
The moose likes JSF and the fly likes Call JFrame From JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Call JFrame From JSP" Watch "Call JFrame From JSP" New topic
Author

Call JFrame From JSP

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1413
How can I call and display a JFrame for a JSP?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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: 1413
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: 60991
    
  65

Please be sure to post JSF question in the JSF forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Call JFrame From JSP