mark -

        the concept of a "web-application" is now present
        in jsdk2.1 and is in fact expanded upon in the
        servlet 2.2 specification.

        within the distributed jsdk (and jswdk), webpages is
        an example of just such a structure as is the examples
        directory. each of these directories serve as document
        roots/bases for inbound requests. the examples webApp
        services inbound requests prefaced with an "/examples"
        path where as the webpages webApp services any request
        not handled by another webApp (it is the default
        document base).

        within a single webApp you can place your servlets
        and access them accordingly. the servlets should
        reside in the WEB-INF/servlets directory found in
        any compliant webApp construct/directory.

        eg:

                jsdk2.1/foo/WEB-INF/servlets/Bar.class

                can be invoked via the uri
                http://localhost:8080/foo/servlet/Bar

hope this helps,

- james

Mark Galbreath wrote:
>
> James,
>
> I'm teaching myself servlet programming (isn't everybody?), and I've gone through 
>the API docs and the examples in the Sun package download; you authored many of the 
>servlets and config files included.  I cannot write a separate applet and have it 
>compile within the 2.1 download directory framework.  I've created a separate 
>subdirectory off the JSDK2.1 directory and altered the main properties file to 
>reflect that.  I still get compile-time erros to the effect that the compiler cannot 
>find the javax packages.
>
> When I compile the source outside this framework and place the class file within it, 
>I cannot get the servlet to run.  I'm concurrently reading Jason's book and going 
>through the Sun online tutorial, and I'm probably just not getting something simple.
>
> Can you spare a sec and comment?
>
> Thanks....
>
> ~mark
>
> ___________________________________________________________________________
> 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