Re: Custom Homepage

2003-07-23 Thread Tim Funk
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é 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Custom Homepage

2003-07-23 Thread Rene Vangsgaard ML
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" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Custom Homepage

2003-07-22 Thread Robert Wray
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" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
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
>


Re: Custom Homepage

2003-07-22 Thread vairamuthu thayapavan
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 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Custom Homepage

2003-07-21 Thread Bill Barker
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 that there is no file named 'index.jsp' at
$CATALINA_HOME/webapps/myapp/ (or re-order your welcome-pages).


"Me" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Custom Homepage

2003-07-21 Thread Shapira, Yoav

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 welcome files, and tomcat 5 supports this feature.

The welcome files are configured in web.xml for your webapp.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Me [mailto:[EMAIL PROTECTED]
>Sent: Monday, July 21, 2003 6:23 PM
>To: Tomcat Users List
>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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Custom Homepage

2003-07-21 Thread Me
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]