hello:
I still cannot solve my problem.I use IIS 2.0,JSDK2.0.IE5.0
When my servlet class sends a html include applet tag,like this:
/*using dopost method*/
public void doPost(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
{
res.setContentType("text/html");
PrintWriter toClient = res.getWriter();
toClient.println("<html>");
toClient.println("<title>Thank you!</title>");
toClient.println("<body>");
toClient.println("<applet code=login.class width=400 height=400>");
toClient.println("</applet>");
toClient.println("</body>");
toClient.println("</html>");
toClient.close();
}
....
I put my applet (login.class) in web server home directory .When I browser a html
download from my web server,and set some data in homepage,and click 'submit' button to
download applet using servlet (just like described above).It will occur a
ClassNotFoundException,means cannot find login.class.
why this happened?
Thanks
----- Original Message -----
From: Ernie V <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 09, 1999 1:13 PM
Subject: Re: How can I send a html includes a Applet tag using servlet
> You just answered your own question. That is exactly how you do it. You
> simply return an html page with an applet tag. If you are having
> problems, then it's propbably do to an improper setting in the path to
> your applet code.
>
> I have personally done this and used my servlet to dynamically configure
> the applets parameters.
>
> -ernie
>
>
> > Hello:
> > I am a question which have puzzled me for long time.
> > I want to send a html to client(explorer) using a servlet.This html
> includes a Applet tag.
> > This cannot be achieved.How can I make this work?
> > Thanks
>
> ___________________________________________________________________________
> 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