Re: welcome.do ignored in my web.xml

2008-11-17 Thread Chris Pratt
Like diogo said, if you put a 0 length, empty text file in your project with
the same name as your welcome file, in this case welcome.do, it will trick
the container into calling your action.  It's a trick I've used for years
and it's worked on every container I've used.
  (*Chris*)

On Mon, Nov 17, 2008 at 4:06 AM, Dave Newton <[EMAIL PROTECTED]> wrote:

> --- On Mon, 11/17/08, Cappelletti Marc wrote:
> > Yes but an action is a Servlet. Basically.
>
> Not really, particularly not from the *container's* point of view, which is
> what's important here.
>
> > With Struts 1.3.9 it works. I've got a project in which this works.
>
> In the same environment/with the same server/with the same server version?
>
> Dave
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: welcome.do ignored in my web.xml

2008-11-17 Thread Dave Newton
--- On Mon, 11/17/08, Cappelletti Marc wrote:
> Yes but an action is a Servlet. Basically.

Not really, particularly not from the *container's* point of view, which is 
what's important here.

> With Struts 1.3.9 it works. I've got a project in which this works.

In the same environment/with the same server/with the same server version?

Dave


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



RE: welcome.do ignored in my web.xml

2008-11-17 Thread Cappelletti Marc
Yes but an action is a Servlet. Basically.

With Struts 1.3.9 it works. I've got a project in which this works. Is there 
another params I would've forget?

Thanks, regards ;)

Marc 

-Message d'origine-
De : Wes Wannemacher [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi, 14. novembre 2008 01:48
À : Struts Users Mailing List
Objet : Re: welcome.do ignored in my web.xml

JSPs, HTML files and Servlets will work, but pointing to an action will
not. This is not a struts limitation, it was part of the spec. 

[quote servlet-2_4-fr-spec.pdf]
The Web server must append each welcome file in the order specified in
the deployment descriptor to the partial request and check whether a
static resource or servlet in the WAR is mapped to that request URI. The
Web container must send the request to the first resource in the WAR
that matches. 
[/quote]

On Thu, 2008-11-13 at 11:42 +0100, Cappelletti Marc wrote:
> Hi all,
>  
> I've mapped my struts action *.do in the web.xml file and it works when
> I access a struts action directly with the URL (eg:
> http://localhost:8080/mcbc/welcome.do
> <http://localhost:8080/mcbc/welcome.do> )
>  
> But, when I go to the root of my webapp (http://localhost:8080/mcbc/ ),
> my welcome-file-list tag, which points to a struts action welcome.do is
> ignored by tomcat. And if I put a jsp file or a servlet in this welcome
> list, it works.
>  
> Does anyone have an idea of the problem?
>  
> Regards
>  
> Marc


-
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: welcome.do ignored in my web.xml

2008-11-13 Thread Wes Wannemacher
JSPs, HTML files and Servlets will work, but pointing to an action will
not. This is not a struts limitation, it was part of the spec. 

[quote servlet-2_4-fr-spec.pdf]
The Web server must append each welcome file in the order specified in
the deployment descriptor to the partial request and check whether a
static resource or servlet in the WAR is mapped to that request URI. The
Web container must send the request to the first resource in the WAR
that matches. 
[/quote]

On Thu, 2008-11-13 at 11:42 +0100, Cappelletti Marc wrote:
> Hi all,
>  
> I've mapped my struts action *.do in the web.xml file and it works when
> I access a struts action directly with the URL (eg:
> http://localhost:8080/mcbc/welcome.do
>  )
>  
> But, when I go to the root of my webapp (http://localhost:8080/mcbc/ ),
> my welcome-file-list tag, which points to a struts action welcome.do is
> ignored by tomcat. And if I put a jsp file or a servlet in this welcome
> list, it works.
>  
> Does anyone have an idea of the problem?
>  
> Regards
>  
> Marc


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



Re: welcome.do ignored in my web.xml

2008-11-13 Thread diogo pontual
Try creating a empty text file welcome.do in your WebContent dir.

Best regards,

Diogo

On Thu, Nov 13, 2008 at 10:07 AM, Nils-Helge Garli Hegvik
<[EMAIL PROTECTED]>wrote:

> Your container probably only supports file resources as welcome files.
> Try creating a jsp that forwards to your struts action instead.
>
> Nils-H
>
> On Thu, Nov 13, 2008 at 11:42 AM, Cappelletti Marc
> <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I've mapped my struts action *.do in the web.xml file and it works when
> > I access a struts action directly with the URL (eg:
> > http://localhost:8080/mcbc/welcome.do
> >  )
> >
> > But, when I go to the root of my webapp (http://localhost:8080/mcbc/ ),
> > my welcome-file-list tag, which points to a struts action welcome.do is
> > ignored by tomcat. And if I put a jsp file or a servlet in this welcome
> > list, it works.
> >
> > Does anyone have an idea of the problem?
> >
> > Regards
> >
> > Marc
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Diogo Dauster Pontual
[EMAIL PROTECTED]
61.81850270


Re: welcome.do ignored in my web.xml

2008-11-13 Thread Nils-Helge Garli Hegvik
Your container probably only supports file resources as welcome files.
Try creating a jsp that forwards to your struts action instead.

Nils-H

On Thu, Nov 13, 2008 at 11:42 AM, Cappelletti Marc
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I've mapped my struts action *.do in the web.xml file and it works when
> I access a struts action directly with the URL (eg:
> http://localhost:8080/mcbc/welcome.do
>  )
>
> But, when I go to the root of my webapp (http://localhost:8080/mcbc/ ),
> my welcome-file-list tag, which points to a struts action welcome.do is
> ignored by tomcat. And if I put a jsp file or a servlet in this welcome
> list, it works.
>
> Does anyone have an idea of the problem?
>
> Regards
>
> Marc
>

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