If you want output HTML from your server which includes a Java Applet, then
the logic to produce the HTML must be in your JSP. I agree with Jonathan,
you should use Sun's Java-Plugin for the browser-side VM. Note, that this
will have an inpact on the HTML that your JSP sends to the client.
I would be very careful with the use of Swing-UI unless you need that
functionality. With JDK 1.1 and 1.2, some of the Widgets in Swing can cause
hundreds of classes to be loaded into memory. The structure of the Swing
portable-look-and-feel manager will load classes for motif, metal as well as
windows look and feel. It is my understanding that this is unchanged in 1.3.
This is a performance hit in starting an applet. It also leads to a larger
memory footprint. I have gotten better performance and a lighter footprint
from 3rd party widgets.
I wish that Swing would only load the classes to support the native
platform, by default. Hopefully, this will change in a future release.
David Marshall
- Original Message -
From: "Cogley, Jonathan" <[EMAIL PROTECTED]>
Sent: Monday, October 02, 2000 6:22 AM
Subject: Re: How Do I display Java Gui Objects on a browser with JSP?
> Charbel,
>
> The only way to run Java code on the client browser is in the form of an
> applet.
> So you will need to create an applet and you will also need to ensure that
> the
> swing classes are installed on the client... You may want to look at
running
> the Sun VM or getting the user to download the JRE 1.3 from Sun which (I
> believe)
> includes the swing classes.
> http://java.sun.com/products/plugin/index.html
>
> You may also want to have a good read thru a JSP book to make sure you
> understand
> the difference between client (e.g. JavaScript) and server code.
>
> Regards,
> Jonathan
>
>
> -Original Message-
> From: charbel achkar [mailto:[EMAIL PROTECTED]]
> Sent: 30 September, 2000 8:10 AM
> To: [EMAIL PROTECTED]
> Subject: How Do I display Java Gui Objects on a browser with JSP?
>
>
> Hi everyone,
>
> New to this list. I am trying to incorporate javax.swing and awt gui
object
> with HTML fields in a JSP form. I am able to instantiate these objects but
> failed to show them on the browser frame. I tried to get contentpane for
the
> frame but I failed. does anyone know how to show these instantiated GUI
> objects in my browser?
>
> Many Thanks in Advance
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
__
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets