You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Leonel <ln...@gmail.com> on 2006/06/19 19:51:29 UTC

servlet as an index page ?

Hello

I'm trying  to make a  Servlet  act as a Index page

when  I request the url     http://server/     how  can I  tell tomcat
to execute  the servlet I want
it works when  I request   http://server/servlet     but I don't want
to issue  the  servlet name on the url

thanks


-- 
Leonel

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: servlet as an index page ?

Posted by Leonel <ln...@gmail.com>.
On 6/19/06, Marc Farrow <ma...@gmail.com> wrote:
> Change your ROOT index.jsp to redirect to the servlet.  Or you can map "ALL"
> ROOT requests to go to the servlet.  Not sure the latter is something you
> want.
>
> On 6/19/06, Leonel <ln...@gmail.com> wrote:
> >
> > Hello
> >
> > I'm trying  to make a  Servlet  act as a Index page
> >
> > when  I request the url     http://server/     how  can I  tell tomcat
> > to execute  the servlet I want
> > it works when  I request   http://server/servlet     but I don't want
> > to issue  the  servlet name on the url
> >
> > thanks
> >
> >
> > --
> > Leonel
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>
>
> --
> Marc Farrow
>
>


and that will be on my   web.xml ?

-- 
Leonel Nunez

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: servlet as an index page ?

Posted by Marc Farrow <ma...@gmail.com>.
Change your ROOT index.jsp to redirect to the servlet.  Or you can map "ALL"
ROOT requests to go to the servlet.  Not sure the latter is something you
want.

On 6/19/06, Leonel <ln...@gmail.com> wrote:
>
> Hello
>
> I'm trying  to make a  Servlet  act as a Index page
>
> when  I request the url     http://server/     how  can I  tell tomcat
> to execute  the servlet I want
> it works when  I request   http://server/servlet     but I don't want
> to issue  the  servlet name on the url
>
> thanks
>
>
> --
> Leonel
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
Marc Farrow

Re: servlet as an index page ?

Posted by Leonel <ln...@gmail.com>.
On 6/19/06, Hassan Schroeder <ha...@gmail.com> wrote:
> On 6/19/06, Leonel <ln...@gmail.com> wrote:
>
> > I'm trying  to make a  Servlet  act as a Index page
>
> Suggestion: *read* the 2.4 Servlet Spec :-)

Suggestion Accepted

info found  on the   page 85 of the  2.4 servlet spec

>
> If you're not running a 2.4 webapp, forward from the welcome-file
> of your choice...
>
> HTH,
> --
> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
>

Thank You all very very   much

-- 
Leonel Nunez

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: servlet as an index page ?

Posted by Hassan Schroeder <ha...@gmail.com>.
On 6/19/06, Leonel <ln...@gmail.com> wrote:

> I'm trying  to make a  Servlet  act as a Index page

Suggestion: *read* the 2.4 Servlet Spec :-)

If you're not running a 2.4 webapp, forward from the welcome-file
of your choice...

HTH,
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org