Two Laptop Bag
The moose likes Swing / AWT / SWT and the fly likes SWT in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "SWT in JSP" Watch "SWT in JSP" New topic


Rakesh Shimpi

Joined: Feb 20, 2006
Posts: 1
hai guys,
i'am new to this group. can any buddy tell me that is it possible to use the SWT TreeViewer in JSP pages.
Tim Koop

Joined: Jun 23, 2005
Posts: 8
If you are talking screen widgets, then a jsp or asp or html doesn't make a difference, since they run on the server and only html are returned to the web browser.

So you're choices are using SWT in a java applet, or using javascript. I can't think of a way to use javascript, so I guess your choice is applet.

Tim Koop
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

The truly simple answer is no. SWT is a desktop GUI API and, as was stated, JSP's are a server side technology. There are plenty of Javascript solutions for displayed trees on web pages if you google for it.

As far as the SWT in an Applet goes, I wouldn't hold your breath. Using Java WebStart it would be possible though.

GenRocket - Experts at Building Test Data
I agree. Here's the link:
subject: SWT in JSP
It's not a secret anymore!