tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rene Vangsgaard ML <rva...@enator.dk>
Subject RE: Custom Homepage
Date Wed, 23 Jul 2003 07:59:24 GMT
If you make your index file a JSP you can redirect to your servlet by doing
this:

<%pageContext.getServletContext().getRequestDispatcher("/aservlet").forward(
request, response);%>

/René 

-----Original Message-----
From: Robert Wray
To: Tomcat Users List
Sent: 22-07-03 17:24
Subject: Re: Custom Homepage

You can redirect to your servlet by placing the following in your index
file:

meta http-equiv="refresh" content="0;
URL=http://www.asite.com/anapp/aservlet"/

(surrounded by "<" and ">")

At 01:23 PM 22/07/2003 +0600, you wrote:
>hi
>
>write a xml file in the webapps dir of tomcat for ur custom page as
done in
>the axis installation.
>
>regards
>thaya
>----- Original Message -----
>From: "Me" <virtual@devils.com>
>To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>Sent: Tuesday, July 22, 2003 4:23 AM
>Subject: Custom Homepage
>
>
> > I installed tomcat yesterday and i am totally confused about its
config
> > files. i am trying to change the default homepage so that tomcat
calls a
> > servlet in the preconfigured servet directory instead of the
index.jsp
>page.
> > Is it possible
> >                        Thanks in advance
> >                                A tomcat newbie
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message