Oh well, no one's answered me yet, but I have found a way, but it's not very
satisfactory.
The problem (as well as the action extension being set to empty string) was
I had an action in the default namespace as <action name="*"...> so it would
intercept all remaining requests.

For static content, I needed these additional packages-
not ideal, because the namespaces are not hierarchical I need a separate
namespace for each static content folder. Can anyone think of a better way? 

    <package name="static" extends="struts-default" namespace="/static">
        <action name="*">
            <result>/{1}</result>
        </action>    
        </package>

    <package name="static-css" extends="struts-default"
namespace="/static/css">
        <action name="*">
            <result>/css/{1}</result>
        </action>    
        </package>

    <package name="static-js" extends="struts-default"
namespace="/static/js">
        <action name="*">
            <result>/js/{1}</result>
        </action>    
        </package>



Nick J wrote:
> 
> I am using struts2.
> I don't want .action or .do on the end of the url's, so I set
> struts.action.extension='' (empty string)
> 

-- 
View this message in context: 
http://www.nabble.com/Struts2-static-content-tp19784601p19795669.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]

Reply via email to