I've successfully setup Struts by placing struts-config.xml and modifying web.xml directly in the magnolia main module. But I don't like this approach. So I'm trying to set it up using my allready working magnolia module. Therefor I've added the following inside module.xml:

<module>
        [...]

        <servlets>
        <servlet>
            <class>org.apache.struts.action.ActionServlet</class>
            <mappings>
                <mapping>/do/*</mapping>
            </mappings>
            <name>action</name>
            <comment>Struts servlet definition.</comment>
            <params>
                <param>
                    <name>config</name>
                    <value>/WEB-INF/struts-config.xml</value>
                </param>
            </params>
        </servlet>
    </servlets>

</module>

But this doesn't seem to load properly. My <html:link> tags are generated with the wrong hrefs missing the /do/ pathcomponent. So I assume Struts has not been loaded at all. I can't even call actions directly entering their URLs. The struts-config.xml is still placed directly inside the main magnolia module and should be accessible.

Any idea what's missing?

--
Daniel Bleisteiner
Development @ Luxoom GmbH, Chaussseestr. 8 E, 10115 Berlin, Germany

----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to