A simple answer would be: place every servlet in your web.xml file, and
apply a servlet mapping. You must do it for each one you have, but then
it works (that's what I do).

And also, you can skip those odd package names.

Un saludo,

Alex.

<web-app>
    <servlet>
        <servlet-name>
            MyServlet
        </servlet-name>
        <servlet-class>
            package.MyServlet
        </servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>
            MyServlet
        </servlet-name>
        <url-pattern>
            /MyServlet
        </url-pattern>
    </servlet-mapping>
[...]
</webapp>

"Aidee Angulo P." wrote:

> Hi All,
>
> What I should do for configure servlets directory
> other than /servlets for a new application?
>
> with regards,
>
> Aideé
>
> P.D. Please tell me how  I should do in web.xml and server.xml.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to