Along these same lines, we also use an index.html file under Apache to
redirect to our /webapp/index.jsp:
<html>
<head>
<script language="JavaScript">
function redirect()
{
window.location =
"/webapp/index.jsp"
}
//-->
</script>
</head>
<body onLoad="setTimeout('redirect()', 0)">
</body>
</html>
This works OK, except if Tomcat is down. I can't seem to figure out what
error code (404? 500?) to have Apache grab so I can display a 'temporarily
unavailable' page. Any ideas?
Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS 66219
(913) 577-1496
[EMAIL PROTECTED]
-----Original Message-----
From: Steve Raeburn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 6:32 AM
To: Struts Users Mailing List
Subject: RE: Best practices - help
have a welcome jsp page that redirects to your action:
struts-config.xml:
<global-forwards>
<forward name="welcome" path="/myaction.do"/>
</global-forwards>
index.jsp:
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
prefix="logic" %>
<logic:redirect forward="welcome"/>
(that's the whole jsp file, not just a snippet!)
Steve
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: June 24, 2003 4:11 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Best practices - help
>
>
> Hi Steve,
>
> The problem is that /MyLayer.jsp happens to be my welcome page.
>
> This page has to be displayed on start up.How do I get struts process my
> Action servlet,myAction, in order to give /MyLayer.jsp the
> content it needs?
>
> Thanks
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This transmission (and any information attached to it) may be confidential and is
intended solely for the use of the individual or entity to which it is addressed. If
you are not the intended recipient or the person responsible for delivering the
transmission to the intended recipient, be advised that you have received this
transmission in error and that any use, dissemination, forwarding, printing, or
copying of this information is strictly prohibited. If you have received this
transmission in error, please immediately notify LabOne at the following email
address: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]