Would that work with Tiles?

Wiebe

-----Original Message-----
From: Matt Bathje [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 23, 2004 1:51 PM
To: Struts Users Mailing List
Subject: Re: Struts Action as Welcome File

If search engine placement is a concern for your app, the home page 
redirect may be a bad idea. We used this instead:

(in index.jsp):
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<logic:forward name="indexNoRedirect"/>

(in struts-config):
<forward name="indexNoRedirect" path="/myapp/login.do?method=load" 
redirect="false"/>


Matt



Mulligan, Scott H wrote:

> That worked. I was hoping for a more elegant solution, but it'll do.
> 
> Thanks!
> 
> Scott Mulligan
> 
> 
> 
> -----Original Message-----
> From: Wiebe de Jong [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 23, 2004 4:23 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Struts Action as Welcome File
> 
> 
> Just have your web.xml point to a jsp. I call mine index.jsp, but you can
> use whatever.
> 
>   <welcome-file-list>
>     <welcome-file>/index.jsp</welcome-file>
>   </welcome-file-list>
> 
> The jsp contents would be:
> 
> <html>
> <head>
> <META HTTP-EQUIV="Refresh" CONTENT="0; URL=/myapp/login.do?method=load">
> </head> </html>
> 
> Wiebe
> 
> -----Original Message-----
> From: Mulligan, Scott H [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 23, 2004 12:37 PM
> To: Struts Users Mailing List
> Subject: Struts Action as Welcome File
> 
> I am trying to set my application's welcome file to a struts dispatch
action
> (login.do?method=load), but it isn't being found. Is there any reason I
> can't use a dispatch action as my welcome page? Is there a better way to
do
> this?
> 
> Scott Mulligan
> 
> 


---------------------------------------------------------------------
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]

Reply via email to