You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by neha bhatt <ne...@gmail.com> on 2008/01/23 08:28:16 UTC

Re: hiding .action in url in struts 2

Hi,
struts.action.extension=
it works.. but there is no longer I can access the files with extension.
like .js, .css.. etc,

I get :
There is no Action mapped for action name struts/xhtml/styles.css. -
[unknown location]
for each url


Mirbek Nosinov wrote:
> 
> thanks. it works
> i tried just
> 
> struts.action.extension=
> and it works
> 
> 
> 2007/9/7, Guillaume Carré <gu...@gmail.com>:
>>
>> 2007/9/7, Mirbek Nosinov <mi...@gmail.com>:
>> > How to hide .action extension in url for my actions
>> >
>> > for example
>> > if i have url for my action like
>> > http://localhost:8080/cms2/StartPage.action
>> >
>> > but i need like
>> > http://localhost:8080/cms2/StartPage
>>
>> you can modify the extension in struts.properties:
>> struts.action.extension=do
>> I don't think you can leave it blank, give it a try
>>
>> what you could do is using mod_rewrite if you use Apache as a
>> frontend, or use the UrlRewriteFilter (http://tuckey.org/urlrewrite/)
>> in your app.
>> --
>> Guillaume Carré
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/hiding-.action-in-url-in-struts-2-tp12554781p15036261.html
Sent from the Struts - User mailing list archive at Nabble.com.


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