netbeans 6.5 spring + struts实验

netbeans 6.5 spring + struts实验
validation.xml配置form

    <formset>

        <!-- An example form -->
        <form name="logonForm">
            <field
                property="username"
                depends="required">
                    <arg key="logonForm.username"/>
            </field>
            <field
                property="password"
                depends="required,mask">
                    <arg key="logonForm.password"/>
                    <var>
                        <var-name>mask</var-name>
                        <var-value>^[0-9a-zA-Z]*$</var-value>
                    </var>
            </field>
        </form>

    </formset>


struts-config.xml
配置
<action attribute="logonForm" input="/index.jsp" name="logonForm" path="/login" scope="request" validate="true" type="org.springframework.web.struts.DelegatingActionProxy" />

 <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
        <set-property property="contextConfigLocation" value="/WEB-INF/applicationContext.xml" />
    </plug-in>

dispatcher-servlet.xml配置
<bean name="/login" class="com.myapp.struts.LoginAction"></bean>

配置完后spring的url-mapping无效了,郁闷ing,睡觉了,做个笔记先

你可能感兴趣的:(netbeans 6.5 spring + struts实验)