struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken <>
Subject struts.xml parsing error, involving interceptor
Date Mon, 27 Sep 2010 23:52:35 GMT

This has been driving me nuts... 

The following works in my code (typed by hand not copied from source):
    <!-- If I add the missing content (found below) HERE, then this does
NOT work -->
    <package namespace="/secure" name="secure" extends="struts-default">
            <result-type name="tiles"
            <result name="login" type="redirectAction">login</result>
        <action name="test">
            <result name="success" type="tiles">/secure/welcome</result>

*** This breaks the otherwise working struts.xml if inserted where the
commented line is above ***

    <interceptor name="authenticationInterceptor"
    <interceptor-stack name="secureStack">
        <interceptor-ref name="authenticationInterceptor"/>
        <interceptor-ref name="defaultStack"/>
<default-interceptor-ref name="secureStack"/>

*** End content ***

Error states that there is a parsing error in the file included into
struts.xml... Need fresh eyes...

Oh at the top of each document for completeness:

<?xml version="1.0" encoding="UTF-8"?>
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"

Thank you. 

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message