ssh 报错 No result defined for action and result input
来源:互联网 发布:网络免费学英语 编辑:程序博客网 时间:2024/05/29 03:30
配置如下:
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd"><struts><constant name="struts.i18n.encoding" value="gb2312"></constant><constant name="struts.devMode" value="true" /><constant name="struts.objectFactory" value="spring"></constant><package name="struts2" extends="struts-default" ><action name="register" class="registerAction"><result name="success" type="chain">/welcome.jsp</result><result name="input">/register.jsp</result></action></package></struts>
<?xml version="1.0" encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:p="http://www.springframework.org/schema/p"xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"><bean id="dataSource"class="org.apache.commons.dbcp.BasicDataSource"><property name="driverClassName"value="com.mysql.jdbc.Driver"></property><property name="url" value="jdbc:mysql://localhost:3306/bbs"></property><property name="username" value="root"></property><property name="password" value="jmln2012"></property></bean><bean id="sessionFactory"class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"><property name="dataSource"><ref bean="dataSource" /></property><property name="hibernateProperties"><props><prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop></props></property></bean><!-- 定义HibernateTemplate --><bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate"><property name="sessionFactory"><ref bean="sessionFactory"/><!--注入SessionFactory实例对象--></property></bean><bean id="hibernateTransactionManager"class="org.springframework.orm.hibernate3.HibernateTransactionManager"><property name="sessionFactory"><ref bean="sessionFactory"/><!--注入SessionFactory实例对象--></property></bean><bean id="userDAOTarger" class="com.ssh.daoimp.UserDAOImp"><!--装配数据访问层--><property name="hibernateTemplate"><ref bean="hibernateTemplate"/><!--注入HibernateTemplate --></property></bean><bean id="userDAO" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"><property name="transactionManager"><ref bean="hibernateTransactionManager"/><!-- 为事务代理bean注入事务管理器--></property><property name="transactionAttributes"><!-- 设置事务属性 --><props><!-- 所有的方法,采用required的事务策略 --><prop key="*">PROPAGATION_REQUIRED</prop></props></property><property name="target"><!--为事务代理bean设置目标bean --><ref bean="userDAOTarger"/></property></bean><bean id="userService" class="com.ssh.serviceimp.UserServiceImp"><property name="userDAO" ref="userDAO"></property><!--注入DAO层--></bean><bean id="registerAction" class="com.ssh.action.RegisterAction" scope="prototype"><property name="userService" ref="userService"></property><!--注入业务逻辑层--></bean></beans>配置应该没有错误
查了很长时间,发现改为
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd"><struts><constant name="struts.i18n.encoding" value="gb2312"></constant><constant name="struts.devMode" value="true" /><constant name="struts.objectFactory" value="spring"></constant><package name="struts2" extends="struts-default" ><action name="registeruser" class="registerAction"><result name="success" type="chain">/welcome.jsp</result><result name="input">/register.jsp</result></action></package></struts>
这样就可以了
可是为什么呀,太坑了吧 换个名就行了?
- 报错:No result defined for action and result input
- SSH报错:No result defined for action com.tyzy.action.user.UserAction and result input
- ssh 报错 No result defined for action and result input
- [SSH]Struts2 -- No result defined for action and result input
- struts2报错: No result defined for action and result input
- 关于struts2上传文件报错“No result defined for action and result input”
- 关于struts2上传文件报错“No result defined for action and result input”
- 使用struts2的标签报错No result defined for action and result input
- 关于报错 No result defined for action.....and result input
- Struts2 项目报错 No result defined for action com.xxx.xxAction and result input
- 关于 esayui表格获取数据报错No result defined for action *** and result input
- Struts2报错:No result defined for *action and result input
- 使用Struts开发报错“No result defined for action and result input ...”
- No result defined for action *Action and result input - action -
- SSH, No result defined for action *Action and result input - action
- No result defined for action and result input - action
- No result defined for action action.UploadAction and result input
- No result defined for action *Action and result input
- BX9054: 各浏览器对 document.execCommand 方法的首参数可选值范围存在差异
- [Chrome]谷歌浏览器插件开发:HelloChrome插件的开发过程
- 关于ubuntu下搭建tftp服务器
- Linux中configure/makefile的文章样例
- 【jiasuba】怎么避免无线IP发生冲突
- ssh 报错 No result defined for action and result input
- C语言读取一行文本
- Silverlight之Frame传递多个参数并获取完整参数
- JAVA读取Oracle中的blob图片字段并显示
- AIX 磁盘管理常用命令
- IO 流读取文件时候出现乱码 文件编码格式问题 怎么转换解决方法
- django 数据库增强工具 south 的安装使用和注意事项。。。
- spoj 362
- Android_观察者模式简单Demo