at the heart of jswdk is jsdk ... at least that is
the intention.

the latest/greatest servlet specification is 2.2 and
as such the jswdk is tracking it accordingly. to your
question, within the scope of servlets, the concept of
a "web application" has come onto the scene. more
information on this can be found at:

        http://java.sun.com/products/servlet/2.2

                in particular note chapter 9

jswdk (and jsdk 2.1) can support one or more web
applications. the default web application, for jswdk
this is the webpages directory, will honor all inbound
requests which are not handled by a peer web application.
remaining web applications can be added to jswdk by
adding the appropriate webserver.xml entries (see the
inline comments for help) and creating the associated
directory structure (for providing local content). in
short, this directory needs to contain a WEB-INF directory
which in turn includes the appropriate configuration
files and directories, one of which being the servlets
directory. once the servlet is hosted in this directory,
the appropriate configuration changes are made
(WEB-INF/servlet.properties and possibly webserver.xml)
and the server is [re]started you should be able to
access your servlet via:

        http://localhost:8080/[WebAppMap]/servlet/[ServletClass]

so, if you have a WebAppMap of "/foo" and a servlet of
bar.class then the following uri should access said
servlet:

        http://localhost:8080/foo/servlet/bar

if instead your servlet is x.y.z.bar.class try:

        http://localhost:8080/foo/servlet/x.y.z.bar

        note: i haven't tested this one for a bit

further, and i should've possibly reversed the order
of progression a bit, the WebApp could possibly manifest
itself as:

        C:\tmp\foo
                WEB-INF
                        servlet.properties
                        servlets
                                foo.class
                                x
                                        y
                                                z
                                                        foo.class

hope this helps,

- james

Stuart Butler wrote:
>
> --- jhughes <[EMAIL PROTECTED]> wrote:
> > This product comes with it's own webserver. The only
> > other thing you will
> > need is the JDK.
> >
> I notice quite a few people seem to be using JSWDK
> instead of the JSDK.  I tried configuring it on
> Windows NT and did not manage to run my servlets.
>
> I want to run class x.y.z.class.  In webserver.xml the
> server is configured that examples should be mapped to
> /examples which is then translated to
> [jswdkhome]\examples\web-info\servlets.
> The URL to access a servlet seems to be
> http://localhost:8080/examples/servlet/servletname.
> I can't figure out how these mappings tie in to each
> other.  I tried putting x.y.z.class into
> [jswdkhome]\examples\web-info\servlets\x\y\z.class
> but the webserver did not find it.  I would prefer a
> URL of
> http://localhost:8080/servlet/x/y/z
> but my amendments to webserver.xml did not achieve
> this.
>
> Where do I put my servlets????  If someone responds
> soon I may have some hair left.  It's certainly a lot
> more hassle than the good 'ole JSDK 2.0 - I almost
> feel nostalgic for the servlet runner already.  I
> don't feel JWSDK has brought me any benefits.
>
> Stuart Butler
> ____________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to