Can you request the applet jar file directly from the browser URL field?  If not, then 
there's something wrong with your WAR file.  If you can get it through the browser, 
then so can your HTML file.

> -----Original Message-----
> From: Carter, Scott [mailto:[EMAIL PROTECTED]]
> 
> The applet is not recognized even at the top of the tree, the 
> directory
> above WEB-INF.
> 
> -----Original Message-----
> From: Karr, David [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 21, 2002 2:06 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Applet-Servlet chat server
> 
> 
> From the point of view of a web application, an applet's jar 
> file is just
> like a static file, like an image, an HTML file, or a CSS 
> stylesheet.  You
> would store applet jar files in the "retrievable" section of your WAR
> structure, and NOT in the WEB-INF tree.
> 
> > -----Original Message-----
> > From: Carter, Scott [mailto:[EMAIL PROTECTED]]
> >
> > I am trying to run the simple chat server in Chapter 10 of
> > Jason Hunter's
> > Java Servlet Programming.  My main question is if a servlet
> > produces a page
> > with an applet on it, where does the applet's class file need
> > to be in the
> > directory structure?  My guess was under WEB-INF/classes.
> > When the servlet
> > produces the following page
> >
> > <HTML>
> > <HEAD><TITLE>An Absurdly Simple Chat</TITLE></HEAD>
> > <BODY>
> > <H1>An Absurdly Simple Chat</H1>
> > <APPLET CODE=RMIChatApplet CODEBASE=/ WIDTH=500 HEIGHT=170>
> > </APPLET>
> > </BODY></HTML>
> >
> > The browser just gives me a gray area where the applet 
> should be and a
> > message that says "Loading Java Applet Failed" or "Applet
> > HttpChatApplet
> > notinited".  Does anyone know what I might be doing wrong?
> > Could it be the
> > interfaces location, I have the compiled interfaces in the 
> same place
> > WEB-INF/classes .
> 
> ______________________________________________________________
> _____________
> 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

___________________________________________________________________________
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

Reply via email to