In the simplest model you can take anything from your namespace and append a
.action to it. We use it more to create SEF parameter laden URLs.


I don't have a specific rule for what you're looking for but the
documentation is pretty concise and you can also look at the Apache
mod-rewrite rules (http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html) on
which the library is based.

Z.


> 
> Thanks for the help! Would u please give some brief idea, about setting the
> rule in urlrewrite.xml?
> How can I remove .action suffix from each?
> 
> Thanks,
> Neha Bhatt
> 
> 
> Sparecreative wrote:
>> 
>> We have adopted using the URL Rewrite Filter
>> (http://tuckey.org/urlrewrite/)
>> which like Apache lets you use SEF addresses which are then mapped to
>> .action urls. 
>> 
>> Z.
>> 
>> 
>> 
>>> 
>>>  Hi,
>>> I think you missed something struts.action.extension=action,, leads to
>>> not
>>> actions without ".action" but to the actions with
>>> (action-name suffix(.)).
>>> 
>>> e.g
>>> http://localhost:8080/email (tends to 404 page not found) but
>>> 
>>> http://localhost:8080/email. (with suffix (.) works as ,, ).
>>> 
>>> 
>>> Jeromy Evans - Blue Sky Minds wrote:
>>>> 
>>>> neha bhatt wrote:
>>>>> I am facing same problem.
>>>>> I had tried :
>>>>> eg.
>>>>>  struts.action.extension=action,,
>>>>> 
>>>>> In such case I am getting Http Status 404.
>>>>> 
>>>>>   
>>>> As mentioned in the related post titled "Blank action extension in root
>>>> namespace causing 302 in Tomcat" (no link at time of posting), try a
>>>> non-root namespace.
>>>>> where as if I use,
>>>>> eg. 
>>>>> struts.action.extension=
>>>>> 
>>>>> All files with extenstion like: javascript , css and images not
>>>>> loading.
>>>>> 
>>>>>   
>>>> This is a slightly different configuration than a double comma:
>>>> 
>>>> struts.action.extension=
>>>> 
>>>> By setting it to blank, for every request that reaches the Struts2
>>>> filter (eg /*), Struts2 will attempt to match it to an action.  If you
>>>> take that broad approach you'll have to setup apache to serve the static
>>>> content as the V2.4 web.xml doesn't allow you to use <exlcludes> in the
>>>> filter mapping.
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>> 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]

Reply via email to