Launch Applet from JSP: ClassNotFoundException

C

cdvr

I have the following file structure...

MyApp.war\
WEB-INF\
classes\
com\
blah\
BlahApplet.class
my.jsp

I am using Jboss.

Anyways, in "my.jsp" I have...

<jsp:plugin name="Blah"
type="applet"
code="com.blah.BlahApplet.class"
width="100"
height="100"
codebase="WEB-INF/classes"
archive="OtherJars/some.jar">
</jsp:plugin>

I have tried changing codebase to be "."......but I still get a
ClassNotFoundException "com.blah.BlahApplet.class"

what I am missing here.
 
A

Andrew Thompson

I have the following file structure...

MyApp.war\
WEB-INF\
classes\
com\
blah\
BlahApplet.class

Resources in WEB-INF will not be accessible
to loading by browsers. Class files for applets
must exist within the 'publicly browsable'
area of the server.

It is also a good idea to jar the applet classes.

Andrew T.
 

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

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
DewittMill
Top