where to put my jar files

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

<jsp:plugin
type=applet
code="mypackage.myApplet"
codebase="WEB-LIB/lib"
archive="myjar1.jar">
</jsp:plugin>

"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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,152
Latest member
LorettaGur
Top