Verma Varun wrote:
>
> Hi All!
> I'm using jswdk-1.0.1 from sun.
> I would like to know whether we can use applets with jsp.
> Any sample code would be highly appreciated.
There's nothing magic about JSP. It's just a way to generate contents,
typically HTML, dynamically on the server.
So you can put an APPLET tag in your JSP page, just as you would in a
static HTML page. If needed, you can also generate part of the APPLET
tag dynamically, e.g. based on database data or information sent by
the user as request parameters. There's also a <jsp:plugin> action
that helps you generate code for executing the applet with the Java
browser plugin, in case your applet is using Java 1.1 or 1.2 features,
see the JSP spec for details
<http://java.sun.com/products/jsp/download.html>.
Just remember, generating an HTML page using JSP doesn't mean you have
access to some new magic communication path between the client and
the server. It's still the same old HTTP protocol that's being used,
where the client asks for a resource and the server returns it, and
then the connection is closed. The client has no idea that the response
was generated by a JSP page, or a CGI, or ASP, or ColdFusion, or NSAPI,
or ... It's just a response to a request. Sorry for the rant, but I've
seen so many similar questions lately that I jumped at the opportunity ;-)
No offense.
Hans
PS.Please also use a descriptive subject line when you post messages to
this list (or any list for that matter). Your chances to get a reply
increases dramatically, and you help all readers of the list to sort
out what they are interested in.
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.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