Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

n00b applet URI question

Michael Labhard

2004-05-27

Replies:

I have a simple project like this:

----------------------
/opt/tomcat/webapps/hello:
HelloWorld.jsp META-INF WEB-INF

/opt/tomcat/webapps/hello/META-INF:
MANIFEST.MF

/opt/tomcat/webapps/hello/WEB-INF:
classes lib web.xml

/opt/tomcat/webapps/hello/WEB-INF/classes/xptoolkit/web:
HelloWorldServlet.class

/opt/tomcat/webapps/hello/WEB-INF/lib:
greetmodel.jar helloapplet.jar
-----------------------

which should ultimately activate the HelloWorldApplet in the helloapplet.jar
file and display "Hello World" from the JSP file:

HelloWorld.jsp:
<%@(protected)"%>
<%@(protected)"%>
<html>
<head><title>Hello World</title></head>
<body>

<jsp:plugin type="applet"
    code="xptoolkit.applet.HelloWorldApplet"
    archive="helloapplet.jar"
    height="200"
    width="200"
    align="center">
    <jsp:fallback>
          <p>plugin not supported</p>
    </jsp:fallback>
</jsp:plugin>
</body>
</html>

However I only see a message "Loading java applet ..." and nothing more. Is
the JSP file wrong, maybe the "archive" path to the applet is not correct?
Thank you.

-- Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.