You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rusty Wright <ru...@gmail.com> on 2009/09/02 00:05:33 UTC

struts2 filter-mapping url-pattern

In the web.xml why is the filter-mapping url-pattern /* ?  Would it work to change it to *.action instead?

For some reason, I can't get jetty to serve my welcome-file index.jsp file and if I change the url-pattern to *.action then it starts working.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts2 filter-mapping url-pattern

Posted by Dave Newton <ne...@yahoo.com>.
Rusty Wright wrote:
> This struts newbie would like to know, what's the /struts/* mapping for?

The static files S2 serves (CSS, JS).

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts2 filter-mapping url-pattern

Posted by Rusty Wright <ru...@gmail.com>.
Ok, thanks.  That makes sense.


Wes Wannemacher wrote:
> There are a few static resources (javascript and css files) in the jar
> that get served up under certain conditions... Such as if you are
> using the javascript validation. Any of the static resources that
> struts serves right from the jar file will be mapped as requests to
> /struts/*
> 
> -Wes
> 
> On Wed, Sep 2, 2009 at 3:20 AM, Rusty Wright<ru...@gmail.com> wrote:
>> That's good to know; thanks.
>>
>> This struts newbie would like to know, what's the /struts/* mapping for?
>>
>>
>> Rajeev Sharma wrote:
>>> *.action works fine for me too.
>>>
>>> -----Original Message-----
>>> From: Peter Phillips <pe...@googlemail.com>
>>> Reply-to: "Struts Users Mailing List" <us...@struts.apache.org>
>>> To: Struts Users Mailing List <us...@struts.apache.org>
>>> Subject: Re: struts2 filter-mapping url-pattern
>>> Date: Wed, 2 Sep 2009 06:57:02 +0100
>>>
>>> Using *.action and /struts/* works fine for our projects.  I wanted to
>>> do that since I wanted to map *.do to a struts 1 filter.
>>>
>>> Peter.
>>>
>>> 2009/9/2 Wes Wannemacher <we...@wantii.com>:
>>>> One thing I've been itching to try is to map to *.action and /struts/*
>>>>
>>>> Those are pretty much the two things you "need"
>>>>
>>>> Try that and see if it works.
>>>>
>>>> By the way, do you get an exception or something? The filters are
>>>> supposed to
>>>> be friendly to non-struts requests... If you're having a problem, it
>>>> might be
>>>> more interesting to address the problem than to try to get rid of the
>>>> filter.
>>>>
>>>> -Wes
>>>>
>>>> On Tuesday 01 September 2009 07:30:59 pm Arthur Neves wrote:
>>>>> I think It' s impossible to do, because all of request's must pass to
>>>>> the
>>>>> filter! If I'd been wrong, please, somebody correct me!
>>>>>
>>>>> 2009/9/1 Rusty Wright <ru...@gmail.com>
>>>>>
>>>>>> In the web.xml why is the filter-mapping url-pattern /* ?  Would it
>>>>>> work
>>>>>> to change it to *.action instead?
>>>>>>
>>>>>> For some reason, I can't get jetty to serve my welcome-file index.jsp
>>>>>> file and if I change the url-pattern to *.action then it starts
>>>>>> working.
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>>>>> For additional commands, e-mail: user-help@struts.apache.org
>>>> --
>>>> Wes Wannemacher
>>>>
>>>> Head Engineer, WanTii, Inc.
>>>> Need Training? Struts, Spring, Maven, Tomcat...
>>>> Ask me for a quote!
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>>> For additional commands, e-mail: user-help@struts.apache.org
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts2 filter-mapping url-pattern

Posted by Wes Wannemacher <we...@wantii.com>.
There are a few static resources (javascript and css files) in the jar
that get served up under certain conditions... Such as if you are
using the javascript validation. Any of the static resources that
struts serves right from the jar file will be mapped as requests to
/struts/*

-Wes

On Wed, Sep 2, 2009 at 3:20 AM, Rusty Wright<ru...@gmail.com> wrote:
> That's good to know; thanks.
>
> This struts newbie would like to know, what's the /struts/* mapping for?
>
>
> Rajeev Sharma wrote:
>>
>> *.action works fine for me too.
>>
>> -----Original Message-----
>> From: Peter Phillips <pe...@googlemail.com>
>> Reply-to: "Struts Users Mailing List" <us...@struts.apache.org>
>> To: Struts Users Mailing List <us...@struts.apache.org>
>> Subject: Re: struts2 filter-mapping url-pattern
>> Date: Wed, 2 Sep 2009 06:57:02 +0100
>>
>> Using *.action and /struts/* works fine for our projects.  I wanted to
>> do that since I wanted to map *.do to a struts 1 filter.
>>
>> Peter.
>>
>> 2009/9/2 Wes Wannemacher <we...@wantii.com>:
>>>
>>> One thing I've been itching to try is to map to *.action and /struts/*
>>>
>>> Those are pretty much the two things you "need"
>>>
>>> Try that and see if it works.
>>>
>>> By the way, do you get an exception or something? The filters are
>>> supposed to
>>> be friendly to non-struts requests... If you're having a problem, it
>>> might be
>>> more interesting to address the problem than to try to get rid of the
>>> filter.
>>>
>>> -Wes
>>>
>>> On Tuesday 01 September 2009 07:30:59 pm Arthur Neves wrote:
>>>>
>>>> I think It' s impossible to do, because all of request's must pass to
>>>> the
>>>> filter! If I'd been wrong, please, somebody correct me!
>>>>
>>>> 2009/9/1 Rusty Wright <ru...@gmail.com>
>>>>
>>>>> In the web.xml why is the filter-mapping url-pattern /* ?  Would it
>>>>> work
>>>>> to change it to *.action instead?
>>>>>
>>>>> For some reason, I can't get jetty to serve my welcome-file index.jsp
>>>>> file and if I change the url-pattern to *.action then it starts
>>>>> working.
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>> --
>>> Wes Wannemacher
>>>
>>> Head Engineer, WanTii, Inc.
>>> Need Training? Struts, Spring, Maven, Tomcat...
>>> Ask me for a quote!
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts2 filter-mapping url-pattern

Posted by Rusty Wright <ru...@gmail.com>.
That's good to know; thanks.

This struts newbie would like to know, what's the /struts/* mapping for?


Rajeev Sharma wrote:
> *.action works fine for me too.
> 
> -----Original Message-----
> From: Peter Phillips <pe...@googlemail.com>
> Reply-to: "Struts Users Mailing List" <us...@struts.apache.org>
> To: Struts Users Mailing List <us...@struts.apache.org>
> Subject: Re: struts2 filter-mapping url-pattern
> Date: Wed, 2 Sep 2009 06:57:02 +0100
> 
> Using *.action and /struts/* works fine for our projects.  I wanted to
> do that since I wanted to map *.do to a struts 1 filter.
> 
> Peter.
> 
> 2009/9/2 Wes Wannemacher <we...@wantii.com>:
>> One thing I've been itching to try is to map to *.action and /struts/*
>>
>> Those are pretty much the two things you "need"
>>
>> Try that and see if it works.
>>
>> By the way, do you get an exception or something? The filters are supposed to
>> be friendly to non-struts requests... If you're having a problem, it might be
>> more interesting to address the problem than to try to get rid of the filter.
>>
>> -Wes
>>
>> On Tuesday 01 September 2009 07:30:59 pm Arthur Neves wrote:
>>> I think It' s impossible to do, because all of request's must pass to the
>>> filter! If I'd been wrong, please, somebody correct me!
>>>
>>> 2009/9/1 Rusty Wright <ru...@gmail.com>
>>>
>>>> In the web.xml why is the filter-mapping url-pattern /* ?  Would it work
>>>> to change it to *.action instead?
>>>>
>>>> For some reason, I can't get jetty to serve my welcome-file index.jsp
>>>> file and if I change the url-pattern to *.action then it starts working.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>>> For additional commands, e-mail: user-help@struts.apache.org
>> --
>> Wes Wannemacher
>>
>> Head Engineer, WanTii, Inc.
>> Need Training? Struts, Spring, Maven, Tomcat...
>> Ask me for a quote!
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts2 filter-mapping url-pattern

Posted by Rajeev Sharma <ra...@gmail.com>.
*.action works fine for me too.

-----Original Message-----
From: Peter Phillips <pe...@googlemail.com>
Reply-to: "Struts Users Mailing List" <us...@struts.apache.org>
To: Struts Users Mailing List <us...@struts.apache.org>
Subject: Re: struts2 filter-mapping url-pattern
Date: Wed, 2 Sep 2009 06:57:02 +0100

Using *.action and /struts/* works fine for our projects.  I wanted to
do that since I wanted to map *.do to a struts 1 filter.

Peter.

2009/9/2 Wes Wannemacher <we...@wantii.com>:
> One thing I've been itching to try is to map to *.action and /struts/*
>
> Those are pretty much the two things you "need"
>
> Try that and see if it works.
>
> By the way, do you get an exception or something? The filters are supposed to
> be friendly to non-struts requests... If you're having a problem, it might be
> more interesting to address the problem than to try to get rid of the filter.
>
> -Wes
>
> On Tuesday 01 September 2009 07:30:59 pm Arthur Neves wrote:
>> I think It' s impossible to do, because all of request's must pass to the
>> filter! If I'd been wrong, please, somebody correct me!
>>
>> 2009/9/1 Rusty Wright <ru...@gmail.com>
>>
>> > In the web.xml why is the filter-mapping url-pattern /* ?  Would it work
>> > to change it to *.action instead?
>> >
>> > For some reason, I can't get jetty to serve my welcome-file index.jsp
>> > file and if I change the url-pattern to *.action then it starts working.
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> > For additional commands, e-mail: user-help@struts.apache.org
>
> --
> Wes Wannemacher
>
> Head Engineer, WanTii, Inc.
> Need Training? Struts, Spring, Maven, Tomcat...
> Ask me for a quote!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts2 filter-mapping url-pattern

Posted by Peter Phillips <pe...@googlemail.com>.
Using *.action and /struts/* works fine for our projects.  I wanted to
do that since I wanted to map *.do to a struts 1 filter.

Peter.

2009/9/2 Wes Wannemacher <we...@wantii.com>:
> One thing I've been itching to try is to map to *.action and /struts/*
>
> Those are pretty much the two things you "need"
>
> Try that and see if it works.
>
> By the way, do you get an exception or something? The filters are supposed to
> be friendly to non-struts requests... If you're having a problem, it might be
> more interesting to address the problem than to try to get rid of the filter.
>
> -Wes
>
> On Tuesday 01 September 2009 07:30:59 pm Arthur Neves wrote:
>> I think It' s impossible to do, because all of request's must pass to the
>> filter! If I'd been wrong, please, somebody correct me!
>>
>> 2009/9/1 Rusty Wright <ru...@gmail.com>
>>
>> > In the web.xml why is the filter-mapping url-pattern /* ?  Would it work
>> > to change it to *.action instead?
>> >
>> > For some reason, I can't get jetty to serve my welcome-file index.jsp
>> > file and if I change the url-pattern to *.action then it starts working.
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> > For additional commands, e-mail: user-help@struts.apache.org
>
> --
> Wes Wannemacher
>
> Head Engineer, WanTii, Inc.
> Need Training? Struts, Spring, Maven, Tomcat...
> Ask me for a quote!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts2 filter-mapping url-pattern

Posted by Wes Wannemacher <we...@wantii.com>.
One thing I've been itching to try is to map to *.action and /struts/* 

Those are pretty much the two things you "need" 

Try that and see if it works. 

By the way, do you get an exception or something? The filters are supposed to 
be friendly to non-struts requests... If you're having a problem, it might be 
more interesting to address the problem than to try to get rid of the filter.

-Wes

On Tuesday 01 September 2009 07:30:59 pm Arthur Neves wrote:
> I think It' s impossible to do, because all of request's must pass to the
> filter! If I'd been wrong, please, somebody correct me!
>
> 2009/9/1 Rusty Wright <ru...@gmail.com>
>
> > In the web.xml why is the filter-mapping url-pattern /* ?  Would it work
> > to change it to *.action instead?
> >
> > For some reason, I can't get jetty to serve my welcome-file index.jsp
> > file and if I change the url-pattern to *.action then it starts working.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org

-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat... 
Ask me for a quote!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts2 filter-mapping url-pattern

Posted by Arthur Neves <ar...@gmail.com>.
I think It' s impossible to do, because all of request's must pass to the
filter! If I'd been wrong, please, somebody correct me!

2009/9/1 Rusty Wright <ru...@gmail.com>

> In the web.xml why is the filter-mapping url-pattern /* ?  Would it work to
> change it to *.action instead?
>
> For some reason, I can't get jetty to serve my welcome-file index.jsp file
> and if I change the url-pattern to *.action then it starts working.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>