On 7/9/07, Charles Goddard <[email protected]> wrote:
To All Magnolians,

I've come across a situation it seems that many of you out there have.
 I wanted to integrate Struts and Magnolia.

After trolling the wiki and mailing list for an hour or so, it seemed
to me that there has been no definitive approach posted on this topic.
 A few people seemed to have been able to get it working, but had not
presented how.

So how does one integrate Struts with Magnolia?

The solution I used is actually extremely simple.  There are 2 step to
resolving this.

   1. Setup a small URI to bypass Magnolia's filter by opening server
--> filters --> cms --> config, and appending to bypass "/1", or
whatever URI fits your need
   2. In the JSPs of your action forwards, redirect back to a page
managed by Magnolia

That's it!  simple enough.

Note that you may notice in the catalina.out log, a message stating
that your Struts pattern is not recognized.  If this annoys you, you
can add the pattern you are using to the Magnolia mime-types by
following the steps at
http://www.magnolia.info/wiki/Wiki.jsp?page=configdocsupport.

Hi Charles!

I think you should be additing more explanations to this setup up. IMO
using redirects is usefull only when you Struts actions are performing
an audit-like functionality or are used to determine what Magnolia
pages will be displayed, otherwise all the work performed in that
action will be lost (due to the redirect). So, what do you use this
integration pattern for?

bests,

./alex
--
.w( the_mindstorm )p.

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

Reply via email to