关于网友提出的“ ssh整合问题Servlet action is not available”问题疑问,本网通过在网上对“ ssh整合问题Servlet action is not available”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:
问题: ssh整合问题Servlet action is not available
描述:sturts-config.xml:
<>
attribute="regUserForm"
input="/regUser.jsp"
name="regUserForm"
path="/regUser"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy" />
applicationContext.xml:
<>
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
/WEB-INF/hibernate.cfg.xml
DAO:
public class UserDao extends HibernateDaoSupport implements IUserDao{
public boolean insertUser(User user){
HibernateTemplate ht = this.getHibernateTemplate();
try{
ht.save(user);
return true ;
}
catch(Exception ex){ex.printStackTrace();}
return false ;
}
}
找了半天没找到错误 web.xml hibernate.xml都没改,路径找不出错误。
以上介绍了“ ssh整合问题Servlet action is not available”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/2916743.html