i guess mapping a servlet to '/' would also be an alternative to specifying
a welcome file list in web.xml

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Christian Sell
Sent: Wednesday, 22 November 2000 6:01 PM
To: Orion-Interest
Subject: Re: Deploying a servlet ear, war: help an oroin newbie


Matt,

good question, indeed. In fact I copied the wrong example. The one you are
asking about makes the EmployeeForm servlet the default servlet for this
web-app (but ONLY for this web-app. "/" stands for the root of the web-app).
That means it takes the place of the usual "index.html" file and can be
invoked by simply giving

<form action="/employee-app" method="post">

To only achieve callability by

<form action="/employee-app/EmployeeForm" method="post">

you would have to specify "/EmployeeForm/*" as servlet mapping (that is the
example I have working).

regards

----- Original Message -----
From: "Matt Krevs" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Wednesday, November 22, 2000 1:04 AM
Subject: RE: Deploying a servlet ear, war: help an oroin newbie


> Christian/anyone else
>
> I noticed your servlet mapping is
>
> <servlet-mapping>
>       <servlet-name>EmployeeForm</servlet-name>
>        <url-pattern>/</url-pattern>
> </servlet-mapping>
>
> What effect does specifying '/' as the url-pattern have?
> Specifically what effect does it have on the action string in a HTML form?
> What would happen if you had another servlet mapping (for another servlet)
> and had '/' as the url pattern?
>





Reply via email to