RE: Struts Action as Welcome File

2004-09-23 Thread Wiebe de Jong
Yup! I like it. 

Thanks

Wiebe

-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 23, 2004 4:53 PM
To: Struts Users Mailing List
Subject: RE: Struts Action as Welcome File

Wiebe,

If you want any directly-web-accessible JSP to display a tile, you can do
that.  Directions are in the TilesAdvancedFeatures.pdf:
http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf

I often make my index.jsp (my web.xml's welcome-file) with code like this:
<%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>


Or insert specific items or replacements for the definition using the tiles
addList, putList, put, etc. methods inside the tiles:insert tag,instead of
immediately closing the tiles:insert tag.

Was that what you meant by "Would that work with Tiles?"

Regards,
David

-Original Message-
From: Wiebe de Jong [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 23, 2004 5:01 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts Action as Welcome File


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" %>


(in struts-config):



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.
>
>   
> /index.jsp
>   
>
> The jsp contents would be:
>
> 
> 
> 
>  
>
> 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]


-
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: Struts Action as Welcome File

2004-09-23 Thread David G. Friedman
Wiebe,

If you want any directly-web-accessible JSP to display a tile, you can do
that.  Directions are in the TilesAdvancedFeatures.pdf:
http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf

I often make my index.jsp (my web.xml's welcome-file) with code like this:
<%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>


Or insert specific items or replacements for the definition using the tiles
addList, putList, put, etc. methods inside the tiles:insert tag,instead of
immediately closing the tiles:insert tag.

Was that what you meant by "Would that work with Tiles?"

Regards,
David

-Original Message-
From: Wiebe de Jong [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 23, 2004 5:01 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts Action as Welcome File


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" %>


(in struts-config):



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.
>
>   
> /index.jsp
>   
>
> The jsp contents would be:
>
> 
> 
> 
>  
>
> 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]


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



Re: Struts Action as Welcome File

2004-09-23 Thread Mark Lowe
Also to the list of suggestions..


On 23 Sep 2004, at 23:02, Matt Bathje wrote:
I'm not entirely sure what you mean...but since my entire site uses 
tiles (other than this index.jsp page) I would have to say yes...

Matt

Wiebe de Jong wrote:
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" %>

(in struts-config):

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.

 
   /index.jsp
 
The jsp contents would be:



 

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]


Re: Struts Action as Welcome File

2004-09-23 Thread Matt Bathje
I'm not entirely sure what you mean...but since my entire site uses 
tiles (other than this index.jsp page) I would have to say yes...

Matt

Wiebe de Jong wrote:
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" %>

(in struts-config):


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.
 
   /index.jsp
 
The jsp contents would be:



 
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]


RE: Struts Action as Welcome File

2004-09-23 Thread Wiebe de Jong
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" %>


(in struts-config):



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.
> 
>   
> /index.jsp
>   
> 
> The jsp contents would be:
> 
> 
> 
> 
>  
> 
> 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]



Re: Struts Action as Welcome File

2004-09-23 Thread Matt Bathje
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" %>

(in struts-config):


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.
  
/index.jsp
  
The jsp contents would be:



 
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]


RE: Struts Action as Welcome File

2004-09-23 Thread Mulligan, Scott H
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.

  
/index.jsp
  

The jsp contents would be:




 

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]

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



RE: Struts Action as Welcome File

2004-09-23 Thread Wiebe de Jong
Just have your web.xml point to a jsp. I call mine index.jsp, but you can
use whatever.

  
/index.jsp
  

The jsp contents would be:







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]



Re: Struts Action as Welcome File

2004-09-23 Thread Andre Van Klaveren
I setup index.jsp as my welcome file (in web.xml) and then just have
index.jsp forward to the Action of my choice.


On Thu, 23 Sep 2004 15:36:42 -0400, Mulligan, Scott H
<[EMAIL PROTECTED]> wrote:
> 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]



Re: Struts Action as Welcome File

2004-09-23 Thread Niall Pemberton
I believe you can only do this since version 2.4 of servlet specification.

Niall
- Original Message - 
From: "Mulligan, Scott H" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 23, 2004 8:36 PM
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]