The client has its own classloader that should load the applet class. The
applet class must be stored in a directory that can be accessed by the web
browser. It is part of the public web page structure for the application.
FYI, according the the HTML 4.0 specification, the codebase attribute is a
relative URL that contains the class file. The directory must be a
subdirectory to the directory holding the page.
Justy
----- Original Message -----
> Leonard:
>
> The directory /WEB-INF/classes if the default to every
> context.
> The libraries (.jar files) should in the /WEF-INF/lib
> directory.
>
> Are you importing the files needed?
> Be aware that you can have multiple contexts, so (by
> default) you cannot reach the classes on different
> contexts. What you can do is change the context in
> which you are running, but I don't considerer really
> helpful.
>
> Hope this help
> Atilio
>
>
>
> --- Leonard Wolters <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I have the following problem:
> >
> > Within a JSP page I want to load an applet. Using
> > the <jsp:plugin>
> > tags I should be able to load the applet, however,
> > there seems to
> > be a problem with the codebase, because the applet
> > cannot be loaded
> > (error: ClassNotFoundException).
> >
> > After searching for the solution, i struck the
> > following page
> > of sun
> >
> http://java.sun.com/j2ee/tutorial/doc/JSPIntro10.html.
> > This
> > page also addresses the problem of loading applets
> > within JSP pages.
> > But, unfortunately, even their example
> >
> (http://java.sun.com/j2ee/tutorial/examples/src/web/bookstore2/banner.txt)
> > doens't seem to work !!
> >
> > The whole problem boils down to the following: Each
> > jar / war file containg
> > a WEB-INF directory which on his turn contains a
> > class and a lib directory.
> > The main question is: how can one access the class
> > files stored in the
> > web-inf \ class directory within a jsp page ?
> >
> > Please provide me with some suggestions or
> > solutions.
> >
> >
> > Thanks,
> >
> > Leonard Wolters
> >
> >
>
===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with
> > body: "signoff JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body:
> > "set JSP-INTEREST DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
> =====
> Ing. Atilio Ranzuglia Buteler
> [EMAIL PROTECTED]
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets