You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Yoav Shapira <sh...@mpi.com> on 2001/11/05 21:09:40 UTC

Re: Location for applets?

Howdy,

> > Do you know were applets should be put in TOMCAT server?
> >
> 
> Applet is the kind of web documents like .html.
> I think that you can put applets together with other static documents.

I would disagree with that ;)  The applets, per-se, are compiled
files (.class or maybe in a jar).  Furthermore, the applet must be
locatable by its fully-qualified class name, e.g. org.mycompany.foo.

Accordingly, I would put the applet (if .class) in the WEB-INF/classes
directory, and if it's in a JAR file I'd put it in the WEB-INF/lib
directory.  The usual stuff applies about if you need them visible to
other apps, put in tomcat/lib, etc.

Just my two cents ;)
Yoav

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Location for applets?

Posted by longinus <lo...@zeus.polsl.gliwice.pl>.
if I put applet.class in webapps/ROOT directory then
CODEBASE='http://myserver:myport/' ? I tried, but don't know why it
doesn't work.

Yoav Shapira schrieb:
> 
> Hi,
> The codebase depends on how you setup your server directories ;)
> I can only comment on what I like to do personally, so adopt this
> as you see fit.
> 
> I like to set up a directory under my docbase, /applets.  Inside
> are just symlinks pointing to the class files that I put under
> the respective webapps WEB-INF/classes directories.  For example,
> applet1->../WEB-INF/classes/org.mycompany.applet1File
> 
> Then my applet tags are typically things like:
> 
> <APPLET
>   NAME=applet1
>   CODE='org.mycompany.Applet1'
>   CODEBASE='http://myserver:myport/mywebapp/applets'
>   <PARAM tags etc... />
> </APPLET>
> 
> Hopefully this helps,
> 
> Yoav
> 
> longinus wrote:
> >
> > how about codebase attribute?
> >
> > Yoav Shapira schrieb:
> > >
> > > Howdy,
> > >
> > > > > Do you know were applets should be put in TOMCAT server?
> > > > >
> > > >
> > > > Applet is the kind of web documents like .html.
> > > > I think that you can put applets together with other static documents.
> > >
> > > I would disagree with that ;)  The applets, per-se, are compiled
> > > files (.class or maybe in a jar).  Furthermore, the applet must be
> > > locatable by its fully-qualified class name, e.g. org.mycompany.foo.
> > >
> > > Accordingly, I would put the applet (if .class) in the WEB-INF/classes
> > > directory, and if it's in a JAR file I'd put it in the WEB-INF/lib
> > > directory.  The usual stuff applies about if you need them visible to
> > > other apps, put in tomcat/lib, etc.
> > >
> > > Just my two cents ;)
> > > Yoav
> > >
> > > --
> > > To unsubscribe:   <ma...@jakarta.apache.org>
> > > For additional commands: <ma...@jakarta.apache.org>
> > > Troubles with the list: <ma...@jakarta.apache.org>
> >
> > --
> > To unsubscribe:   <ma...@jakarta.apache.org>
> > For additional commands: <ma...@jakarta.apache.org>
> > Troubles with the list: <ma...@jakarta.apache.org>
> 
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Location for applets?

Posted by Yoav Shapira <sh...@mpi.com>.
Hi,
The codebase depends on how you setup your server directories ;)
I can only comment on what I like to do personally, so adopt this
as you see fit.

I like to set up a directory under my docbase, /applets.  Inside
are just symlinks pointing to the class files that I put under
the respective webapps WEB-INF/classes directories.  For example,
applet1->../WEB-INF/classes/org.mycompany.applet1File

Then my applet tags are typically things like:

<APPLET 
  NAME=applet1 
  CODE='org.mycompany.Applet1' 
  CODEBASE='http://myserver:myport/mywebapp/applets'
  <PARAM tags etc... />
</APPLET>

Hopefully this helps,

Yoav

longinus wrote:
> 
> how about codebase attribute?
> 
> Yoav Shapira schrieb:
> >
> > Howdy,
> >
> > > > Do you know were applets should be put in TOMCAT server?
> > > >
> > >
> > > Applet is the kind of web documents like .html.
> > > I think that you can put applets together with other static documents.
> >
> > I would disagree with that ;)  The applets, per-se, are compiled
> > files (.class or maybe in a jar).  Furthermore, the applet must be
> > locatable by its fully-qualified class name, e.g. org.mycompany.foo.
> >
> > Accordingly, I would put the applet (if .class) in the WEB-INF/classes
> > directory, and if it's in a JAR file I'd put it in the WEB-INF/lib
> > directory.  The usual stuff applies about if you need them visible to
> > other apps, put in tomcat/lib, etc.
> >
> > Just my two cents ;)
> > Yoav
> >
> > --
> > To unsubscribe:   <ma...@jakarta.apache.org>
> > For additional commands: <ma...@jakarta.apache.org>
> > Troubles with the list: <ma...@jakarta.apache.org>
> 
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Location for applets?

Posted by longinus <lo...@zeus.polsl.gliwice.pl>.
how about codebase attribute?

Yoav Shapira schrieb:
> 
> Howdy,
> 
> > > Do you know were applets should be put in TOMCAT server?
> > >
> >
> > Applet is the kind of web documents like .html.
> > I think that you can put applets together with other static documents.
> 
> I would disagree with that ;)  The applets, per-se, are compiled
> files (.class or maybe in a jar).  Furthermore, the applet must be
> locatable by its fully-qualified class name, e.g. org.mycompany.foo.
> 
> Accordingly, I would put the applet (if .class) in the WEB-INF/classes
> directory, and if it's in a JAR file I'd put it in the WEB-INF/lib
> directory.  The usual stuff applies about if you need them visible to
> other apps, put in tomcat/lib, etc.
> 
> Just my two cents ;)
> Yoav
> 
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>