A
autogoor
Hi, I am write a web app with Tomcat. Here is my file structure:
--Tomcat
--webapps
--my app
--WEB-INF
--jsp
myjsp1.jsp
myjsp1.jsp
--lib
myjar1.jar
In side myjsp1.jsp, I have
<jsplugin
type=applet
code="mypackage.myApplet"
codebase="WEB-LIB/lib"
archive="myjar1.jar">
</jsplugin>
"myApplet" is a Java Applet and the class file is in the myjar1.jar.
But when I visit myjsp1.jsp, an exception was thrown, saying "myApplet
cound not be found". I think it is because the "codebase". My question
is:
1) Is there ok to put Applet class file under WEB-INF?
2) Is my codebase="WEB-LIB/lib" correct?
Thanks,
Autogoor
--Tomcat
--webapps
--my app
--WEB-INF
--jsp
myjsp1.jsp
myjsp1.jsp
--lib
myjar1.jar
In side myjsp1.jsp, I have
<jsplugin
type=applet
code="mypackage.myApplet"
codebase="WEB-LIB/lib"
archive="myjar1.jar">
</jsplugin>
"myApplet" is a Java Applet and the class file is in the myjar1.jar.
But when I visit myjsp1.jsp, an exception was thrown, saying "myApplet
cound not be found". I think it is because the "codebase". My question
is:
1) Is there ok to put Applet class file under WEB-INF?
2) Is my codebase="WEB-LIB/lib" correct?
Thanks,
Autogoor