To All Magnolians,

Here is another solution for those wanting to integrate Struts with
Magnolia.  See http://webmail.magnolia.info/Lists/user-list/Message/10315.html
for how to begin this integration.

Many have asked how to use Commons FileUpload to upload files to your
Magnolia application.  The limitation of this is the filtering done by
Magnolia, more specifically, the MultipartRequestFilter.

I want to take a moment to add a cautionary disclaimer here.  Magnolia
is tightly integrated with its filtering.  The changes mentioned below
will return an error page if the request is meant for Magnolia and not
handled by it's filtering.

In order to use FileUpload, you will need to bypass Magnolia's
filtering.  After watching some of the header information being sent
to Magnolia the filtering changes that I made in the Deployment
Descriptor file were as follows:

 <filter-mapping>
   <filter-name>magnoliaFilterChain</filter-name>
   <url-pattern>/.magnolia/*</url-pattern>
 </filter-mapping>
 <filter-mapping>
   <filter-name>magnoliaFilterChain</filter-name>
   <url-pattern>/.resources/*</url-pattern>
 </filter-mapping>
 <filter-mapping>
   <filter-name>magnoliaFilterChain</filter-name>
   <url-pattern>*.html</url-pattern>
 </filter-mapping>

In my case, this covered the request patterns meant for Magnolia.
This will likely need to be modified as I discover cases that don't
fit these patterns.  However, for the time being I am happily
uploading files using FileUpload.

Hope this helps.  Enjoy!

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to