• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Call JFrame From JSP

 
Ranch Hand
Posts: 2286
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can I call and display a JFrame for a JSP?
 
Marshal
Posts: 28425
102
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2286
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67756
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please be sure to post JSF question in the JSF forum.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic