This article answers my question:

http://www.lunatech-research.com/archives/2005/07/29/struts-urls

There is a big but, mapping each extension in the web.xml to the default servlet works but it's not the ideal solution since it would require that every extension in my application to be mapped, what about the extension less files?. The result would be quite complicated and I am trying to make things easier and fast with struts 2.x. Isn't there any other way? Perhaps writing a custom mapper or filter?

Perssy Llamosas

Perssy Llamosas wrote:
Yes, I tried setting that constant but that makes every static file not to be served by tomcat.
with:
'struts.action.extension='
there won't be .css .html .js

There must be another way. I have seen examples of custom mappers without .action but I don't seem to be able to make them work in struts 2.x

Perssy Llamosas

Don Brown wrote:
You'll need to tell Struts to not use an action extension.  I believe
the setting is 'struts.action.extension=', so by setting it to
nothing, it now won't require the '.action' extension.  You shouldn't
need to use the restful2 action mapper for this to work.  Be warned,
it may not be fully compatible with all the tags.

Don

On 7/10/07, yitzle <[EMAIL PROTECTED]> wrote:
I found this via Google

http://struts.apache.org/2.0.8/struts2-core/apidocs/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.html > Default action mapper implementation, using the standard *.[ext] (where ext usually "action") > pattern. The extension is looked up from the Struts configuration key struts.action.exection.

HTH

---------------------------------------------------------------------
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]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to