Display Options?

I really want to put a scrollable JList or JTable into my JSP page.I have heard comments that this is impossible and would like some input on other JSP compliant options I have.Any input is welcome, as long as it is constructive.
[264 byte] By [wmacey] at [2007-9-26 2:01:16]
# 1
Non-constructive: Yep, it's impossible.Constructive: You could use an applet. I'm no applet pro, but it's my understanding that an applet is a java application running in a browser, which means it would be able to use all the awt and swing classes to draw a GUI.-Derek
beattris at 2007-6-29 8:41:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
I like the applet idea.I have used applets before with some success(some failure too I might add).How do I include the applet into the JSP, and does the applet class file have to be somewhere special?Do I have to have something like a jsp:useApplet or something?
wmacey at 2007-6-29 8:41:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Any Other Display Options?
wmacey at 2007-6-29 8:41:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

1) JSP's do not produce Java - all a JSP can do is write a flat, text HTML file and send it to a browser. Period. No Swing, nothing else, just HTML (or in some cases WML, XML etc, but you get the idea...) - so this is why you can't show any Swing components on a "jsp page".

2) The only way to show Swing directly is to use a JApplet. However, IMO, unless you have control over your clients' machines (eg company intranet?), then you'd probably be better off not using an applet that has swing components in it. Browsers cannot display swing unless the user has Sun's Java Plugin installed (~5MB download).

3) One way of giving the *illusion* that you are showing Swing components in a browser is to use WebCream, a product marketed by Cream Tec:

http://www.creamtec.com/webcream

This allows you to run a Swing app on your server and it converts the GUI to HTML/DHTML and sends it to the client - so the client gets something that looks similar to your Swing GUI, but made from HTML + JavaScript. Don't forget - the code is not running on the client's machine, so response will be slower...

I've never tried WebCream, but it looks intersting.

4) Finally, probably the best way to do what you want is to use JavaScript/DHTML to make a rich, interactive client experience. However, you'll tear out your hair trying to get it to work in all browsers....

Good luck!

artntek at 2007-6-29 8:41:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Would like any other ideas...........
wmacey at 2007-6-29 8:41:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...