tried what exactly, you really need to be more specific.  If you are talking
about using Swing components to create the GUI for the client...
You can, but shouldn't unless you have a small number of users that will be
using your app, and/or until browsers start shipping with a Java2 JVM.  The
JVM's that currently ship with browsers do not have Swing components
available, so users will have to download a plug-in that allows Java2 code
to be run in applets.  Possible, but not adviseable for apps where you have
no control over who is going to be using it.

As far as using Swing components for the GUI.  It can be done, but only as
an applet, which is why I mention the browser's JVM above.

If you were asking if Swing components could be used in the Java Scriptlets
of your JSP page.  Of course they can, you can write just about any Java
code in the Java Scriptlets of JSP pages, because when everything is said
and done, they are basically transformed into little itty bitty prorams.
However, when a user calls the JSP page using the Swing components the Swing
GUI will appear on the SERVER machine, not the client.  This will not only
happen the first time that the page is called, but EVERY time the page is
called.  Meaning that if the page that contains the Swing components is
falled 100 times, you will have 100 Swing windows open on your server
machine.  Which in turn will gobble up the resources like a mad man.

So, my advice is do not use Swing components in JSP unless you understand
the implications.

Joseph Karau
Kingland Systems
[EMAIL PROTECTED]
507-536-3629
AIM: jkara3629


-----Original Message-----
From: Simon Chia [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 16, 2001 7:02 AM
To: [EMAIL PROTECTED]
Subject: Jsp and Swing??


has any tried it before? plz le tme know how if you have!

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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

Reply via email to