Since its a jsp, '' might be a little cleaner.
-Tim
Rene Vangsgaard ML wrote:
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é
-
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
Sub
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
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" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, July 22, 2003 4:23 AM
Subject: Custom Homepage
> I installed
Yoav is correct, but I believe that the following sordid hack will work in
TC 4.x:
1) In your web.xml file create a servlet-mapping something like:
MyWelcomeServlet
/index.html
2) Stick a zero length file called 'index.html' at
$CATALINA_HOME/webapps/myapp/.
3) Make certain
Howdy,
Didn't spend much time with the servlet specification, huh? ;)
Right now you can't use a servlet as your default welcome file. You can
use a JSP or a static HTML file. (Or a couple of other things which you
probably don't want). The next version of the servlet spec allows for
servlet we