Re: struts 2 and servlets, how to exclude servlet url patterns from struts filter

2010-02-01 Thread Jake Vang
thanks, that addressed my problem directly. although, i liked the no
action extension approach.

is there a feature request to pass in init-params to the struts filter
to exclude certain url patterns?

On Sun, Jan 31, 2010 at 6:56 PM, Greg Lindholm  wrote:
> Check out the "Filter Mapping, default Action extensions, and
> Servlets" section on this wiki page:
>
> http://cwiki.apache.org/confluence/display/S2WIKI/Troubleshooting+guide+migrating+from+Struts+2.0.x+to+2.1.x#TroubleshootingguidemigratingfromStruts2.0.xto2.1.x-FilterMapping%2CdefaultActionextensions%2CandServlets
>
>
> On Sun, Jan 31, 2010 at 9:12 AM, Jake Vang  wrote:
>> i am using servlets (HttpServlet) and struts 2. my mapping in web.xml
>> for the struts filter maps to the url pattern, /*. my servlet maps to
>> something like this, /test. however, when i try to access my servlet,
>> http://localhost:8080/myapp/test, i get the following message:
>>
>> "There is no Action mapped for namespace / and action name test"
>>
>> can i make exceptions for the servlet mapping so that the struts
>> filter won't try to map it?
>>
>> here's a snippet from my web.xml.
>>
>> 
>>  struts2
>>  org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
>> 
>> 
>>  struts2
>>  /*
>> 
>> 
>>  testServlet
>>  mypackage.web.servlets.TestServlet
>> 
>> 
>>  testServlet
>>  /test
>> 
>> 
>> testServlet
>> /test/*
>> 
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

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



Re: struts 2 and servlets, how to exclude servlet url patterns from struts filter

2010-01-31 Thread Greg Lindholm
Check out the "Filter Mapping, default Action extensions, and
Servlets" section on this wiki page:

http://cwiki.apache.org/confluence/display/S2WIKI/Troubleshooting+guide+migrating+from+Struts+2.0.x+to+2.1.x#TroubleshootingguidemigratingfromStruts2.0.xto2.1.x-FilterMapping%2CdefaultActionextensions%2CandServlets


On Sun, Jan 31, 2010 at 9:12 AM, Jake Vang  wrote:
> i am using servlets (HttpServlet) and struts 2. my mapping in web.xml
> for the struts filter maps to the url pattern, /*. my servlet maps to
> something like this, /test. however, when i try to access my servlet,
> http://localhost:8080/myapp/test, i get the following message:
>
> "There is no Action mapped for namespace / and action name test"
>
> can i make exceptions for the servlet mapping so that the struts
> filter won't try to map it?
>
> here's a snippet from my web.xml.
>
> 
>  struts2
>  org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
> 
> 
>  struts2
>  /*
> 
> 
>  testServlet
>  mypackage.web.servlets.TestServlet
> 
> 
>  testServlet
>  /test
> 
> 
> testServlet
> /test/*
> 
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

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



struts 2 and servlets, how to exclude servlet url patterns from struts filter

2010-01-31 Thread Jake Vang
i am using servlets (HttpServlet) and struts 2. my mapping in web.xml
for the struts filter maps to the url pattern, /*. my servlet maps to
something like this, /test. however, when i try to access my servlet,
http://localhost:8080/myapp/test, i get the following message:

"There is no Action mapped for namespace / and action name test"

can i make exceptions for the servlet mapping so that the struts
filter won't try to map it?

here's a snippet from my web.xml.


 struts2
 
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter


 struts2
 /*


 testServlet
 mypackage.web.servlets.TestServlet


 testServlet
 /test


testServlet
/test/*


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