If you are using Swing, you will probably need to use the
Java plugin. Also, if you are using the plugin, then the
<APPLET> tag will likely not work. Use SUN's HTML
converter app (you can find it on the web site with the
Plugin) which will convert your <APPLET> tag to an
<OBJECT> tag. This object tag basically allows the
java plugin to substitute the run-time environment that
supports swing for the Browser's JRE, which probably
(obviously?) does not support swing.
Just a possibility.
-Mike
----- Original Message -----
From: Sohaila Roberts <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 08, 2000 11:30 AM
Subject: Re: Servlets & Applets..
> Hi:)
> hmm.. so I tried all that was suggested.
> the following was the simplest code that I figured would *definitely*
> work. All the class files, including VDgraphS.class & graphApplet.class,
> were in the same directory. But it still said that graphApplet could not
> be loaded. And in the java console, it said that that class wasnt found.
> Am I missing something?
>
> public class VDgraphS extends HttpServlet
> {
> public void doGet (HttpServletRequest request, HttpServletResponse
> response)
> throws ServletException, IOException
> {
> PrintWriter out;
> String title = "hmmm...";
>
> response.setContentType("text/html");
>
> out = response.getWriter();
>
> out.println("<HTML><HEAD><TITLE>");
> out.println(title);
> out.println("</TITLE></HEAD><BODY><CENTER>");
> out.println("<applet codebase=\".\" code=\"graphApplet.class\" ");
> out.println(" width=400 height=400> ");
> out.println("</applet>");
> out.println("</CENTER></BODY></HTML>");
> out.close();
> }
> }
> ~
>
> Thanks,
> Sohaila :)
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html