No, you are right. This topic comes up from time-to-time and it is
pretty safe to map the struts filter _only_ to /struts/* and *.action
(if you are using .action as your default extension). There are no
other magic <gr> urls.

-Wes

On Fri, Jan 15, 2010 at 12:06 PM, Stephan R. Mueller
<stephanr.muel...@stud.leuphana.de> wrote:
> Hi Wes, thank you for the quick answer.
> I should have known - it's working now. The problem
> seems to be my web.xml. I wasn't using wildcard filtering
> (<url-pattern>/*</url-pattern>  - this works now) - I've
> been mixing action and servlet (ControllerServlet) mapping
> which led to an explicit URL-Pattern mapping for the filter.
> That's probably why the styles.css URLs could not correctly
> be mapped. So the paths generated were correct, but the path
> wasn't mapped correctly as you suggested.
> Please correct me if I'm wrong.
>
> My bad and thanks again.
>
> Regards,
> Stephan
>
>
> Am 15.01.2010 um 16:50 schrieb Wes Wannemacher:
>
>> Did you go to the generated URL in the browser? The struts filter
>> recognizes certain URL patterns and will find the resources if they
>> are in your web-app or pull them from the jar files. Requests headed
>> for URLs like /web-app/struts/* are handled by the filter.
>>
>> -Wes
>>
>> On Thu, Jan 14, 2010 at 7:38 PM, Stephan R. Mueller
>> <stephanr.muel...@stud.leuphana.de> wrote:
>>> Hi list.
>>>
>>> Using 2.1.8 with JSP on JBoss 5.1.0. <s:head /> generates
>>> the links for style.css and utils.js which is not valid,
>>> i.e. the files are not found at the specified position
>>> (after reviewing the generated HTML). A quick look shows
>>> that styles.css is located under "/template/xhtml/styles.css"
>>> and not under the generated "struts/xhtml/styles.css" .
>>> I'm not sure if this is a bug or just something I messed up
>>> or just if it's just a lack of knowledge on my side.
>>> Please tell me if further information is needed.
>>>
>>> Regards,
>>> Stephan
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>
>>>
>>
>>
>>
>> --
>> Wes Wannemacher
>>
>> Head Engineer, WanTii, Inc.
>> Need Training? Struts, Spring, Maven, Tomcat...
>> Ask me for a quote!
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

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

Reply via email to