struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 白鹏 <bill.tech...@gmail.com>
Subject [HELP] why is this configuration file(struts.xml) faulty????
Date Sun, 22 Mar 2009 11:25:23 GMT
========================================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">

<struts>
<!-- Define all the page-communication,relation between jsp-page and
action-->
    <constant name="struts.objectFactory"
value="org.apache.struts2.spring.StrutsSpringObjectFactory" />
    <constant name="struts.enable.DynamicMethodInvocation"
value="true"></constant> <!-- baipeng add permit dynamic-method-invocation
-->

    <package name="learndata" extends="struts-default"> <!-- The eclipse
told me error is here. -->
        <global-results>
            <result name="login">login.jsp</result>
        </global-results>
        <interceptors>
            <interceptor name="loginInterceptor"
class="shengpeng.interceptor.LoginInterceptor">
            </interceptor>
            <interceptor-stack name="authorityStack">
                <interceptor-ref name="loginInterceptor"/>
                <interceptor-ref name="defaultStack" />
            </interceptor-stack>
        </interceptors>
    </package>


    <include file="struts-logreg.xml" />
</struts>

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