Re: how to make a servlet as the home page

2001-08-26 Thread Saadat Ahmed


one way is to use the index.html and create a frame where you specify src =
path to your servlet

saadat.

- Original Message -
From: naveen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 26, 2001 9:29 PM
Subject: how to make a servlet as the home page


 hi ,
 I am using tomcat and apache, I want to make a servlet as the home page of
 my web site,
 when i access http://www.mysite.com/, a servlet needs to be called and the
 most important thing in this is I need to access HTTP variables like
Remote
 Host, etc.
 thanks in advance







Re: how to make a servlet as the home page

2001-08-26 Thread Saadat Ahmed


one way is to use the index.html and create a frame where you specify src =
path to your servlet

saadat.

- Original Message -
From: naveen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 26, 2001 9:29 PM
Subject: how to make a servlet as the home page


 hi ,
 I am using tomcat and apache, I want to make a servlet as the home page of
 my web site,
 when i access http://www.mysite.com/, a servlet needs to be called and the
 most important thing in this is I need to access HTTP variables like
Remote
 Host, etc.
 thanks in advance







RE: how to make a servlet as the home page

2001-08-26 Thread Aravind Naidu


Create an index.html with the following text

HTML
HEAD
meta http-equiv=REFRESH CONTENT=0; URL=/servlet/com.acme.XYZServlet
/HEAD
/HTML

Ensure that the servlet handles doGet(...)

-- Aravind


- Original Message -
From: naveen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 26, 2001 9:29 PM
Subject: how to make a servlet as the home page


 hi ,
 I am using tomcat and apache, I want to make a servlet as the home page of
 my web site,
 when i access http://www.mysite.com/, a servlet needs to be called and the
 most important thing in this is I need to access HTTP variables like
Remote
 Host, etc.
 thanks in advance






RE: how to make a servlet as the home page

2001-08-26 Thread Dmitri Colebatch

Ok, if you're using apache, then the first thing apache does when it gets
a request for a directory is look for the DirectoryIndex
instruction.  typically this will be set to index.html index.htm index.jsp
etc.  The way this works is that apache will first check index.html, then
index.htm, then index.jsp and serve whichever comes first. 

the second part of the equation is the JkMount directives.  Say you create
a directive 

JkMount /MyHomePageServlet ajp13

then you can set 

DirectoryIndex MyHomePageServlet index.html index.htm index.jsp

and afaik apache should route the request for / to tomcat, and tomcat will
know how to serve /MyHomePageServlet.

just a warning this is all theory, I haven't tested it, but I think the
concepts are right.

hth, cheesr
dim

 
 
 - Original Message -
 From: naveen [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, August 26, 2001 9:29 PM
 Subject: how to make a servlet as the home page
 
 
  hi ,
  I am using tomcat and apache, I want to make a servlet as the home page of
  my web site,
  when i access http://www.mysite.com/, a servlet needs to be called and the
  most important thing in this is I need to access HTTP variables like
 Remote
  Host, etc.
  thanks in advance
 
 
 
 




Re: how to make a servlet as the home page

2001-08-26 Thread Micael Padraig Og mac Grene

Why don't you just have the welcome page in the web.xml contain:
jsp:forward page=/map* /
and have /map* mapped in web.xml to a servlet?  I don't understand why you
think going to a servlet in a problem?
-Original Message-
From: Aravind Naidu [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Sunday, August 26, 2001 7:52 PM
Subject: RE: how to make a servlet as the home page



Create an index.html with the following text

HTML
HEAD
meta http-equiv=REFRESH CONTENT=0; URL=/servlet/com.acme.XYZServlet
/HEAD
/HTML

Ensure that the servlet handles doGet(...)

-- Aravind


- Original Message -
From: naveen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 26, 2001 9:29 PM
Subject: how to make a servlet as the home page


 hi ,
 I am using tomcat and apache, I want to make a servlet as the home page
of
 my web site,
 when i access http://www.mysite.com/, a servlet needs to be called
and the
 most important thing in this is I need to access HTTP variables like
Remote
 Host, etc.
 thanks in advance