Re: n00b applet URI question

2004-05-28 Thread alu, artifex
i don't think the webbrowser can access the jar file inside the WEB-INF
directory, it is protected by tomcat. you have to place the jar file
containing the applet code in a public location such as [...]/hello/applet.
the rendered output (sent to the client) of the jsp page would be 
interesting,
if the applet tag only contains the name of the jar file without path the
browser only looks in the current directory (where the jsp page resides) for
the jar file. if the tag contains a path and the jar file name the path
must not be inside WEB-INF (see above).

mfg
art
Michael Labhard wrote:
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:
[EMAIL PROTECTED] contentType=text/html%
[EMAIL PROTECTED] pageEncoding=UTF-8%
html
headtitleHello World/title/head
body
jsp:plugin type=applet
   code=xptoolkit.applet.HelloWorldApplet
   archive=helloapplet.jar
   height=200
   width=200
   align=center
   jsp:fallback
   pplugin 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


n00b applet URI question

2004-05-27 Thread Michael Labhard
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:
[EMAIL PROTECTED] contentType=text/html%
[EMAIL PROTECTED] pageEncoding=UTF-8%
html
headtitleHello World/title/head
body

jsp:plugin type=applet
code=xptoolkit.applet.HelloWorldApplet
archive=helloapplet.jar
height=200
width=200
align=center
jsp:fallback
pplugin 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]