日期:2014-05-18 浏览次数:20712 次
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<!--开发模式-->
<constant name="struts.devMode" value="true" />
<constant name="struts.multipart.paeser" value="cos" />
<package name="default" namespace="/" extends="struts-default">
<action name="Text" class="TestAction">
<result>/index.jsp</result>
</action>
</package>
</struts>
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<!-- 测试bean
<bean id="test" class="com.lcx.model.domain.City">
<property name="name" value="德阳"></property>
</bean> -->
<bean id="TestAction" class="com.lcx.controlor.action.TestAction" scope="prototype">
</bean>
</beans>
package com.lcx.controlor.action;
import com.opensymphony.xwork2.ActionSupport;
public class TestAction extends ActionSupport
{
public String test()
{
return SUCCESS;
}
}