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é <[EMAIL PROTECTED]>: >> >> 2007/9/7, Mirbek Nosinov <[EMAIL PROTECTED]>: >> > 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: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]