Are you using 2.0 M4?  If so, does "mvn integration-test" pass?
There's a "StaticPages" test in src/test/resources/web-tests.xml that
verifies it works as expected.

Matt

On 3/28/07, wnqq <[EMAIL PROTECTED]> wrote:

So, any other suggested solution to avoid this potential StatifFilter
conflict?
My goal is to allow a user be able to get a pdf report via a url of
"xxxxxx.pdf" instead of "xxxxxx.html".


mraible wrote:
>
> Just to warn you - if you're depending on the functionality of the
> StaticFilter in 2.0 M4 - I haven't tested if it will work when Struts
> intercepts the forward.
>
> Matt
>
> On 3/28/07, wnqq <[EMAIL PROTECTED]> wrote:
>>
>> Dear Matt,
>>
>> Many thanks. The following config works:
>>
>> web.xml:
>>
>>     <filter-mapping>
>>         <filter-name>struts</filter-name>
>>         <url-pattern>/*</url-pattern>
>>         <dispatcher>REQUEST</dispatcher>
>>         <dispatcher>FORWARD</dispatcher>
>>     </filter-mapping>
>>
>> urlrewrite.xml:
>>
>>     <rule>
>>         <from>^/report(.*)List.xls</from>
>>         <to type="forward">/report$1ListXLS.html</to>
>>     </rule>
>>
>>
>> mraible wrote:
>> >
>> > Make sure you have <dispatcher>FORWARD</dispatcher> on your struts
>> > filter to catch the forward.
>> >
>> > Matt
>> >
>

--
View this message in context: 
http://www.nabble.com/How-to-customize-Struts2-action-extention-%22.html%22-to-%22.pdf%22-or-%22.xls%22-for-reports--tf3477247s2369.html#a9714719
Sent from the AppFuse - User mailing list archive at Nabble.com.

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




--
http://raibledesigns.com

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

Reply via email to