struts1.2-demo是一个我仿写jpetstore的对未登陆的处理。比较安全。对一些操作的限制。还有一些不登陆也可以的操作。经典。。。。。
public abstract class BaseAction extends Action {
private PetStoreFacade petStore;
public void setServlet(ActionServlet actionServlet) {
super.setServlet(actionServlet);
if (actionServlet != null) {
ServletContext servletContext = actionServlet.getServletContext();
WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(servletContext);
this.petStore = (PetStoreFacade) wac.getBean("petStore");
}
}
protected PetStoreFacade getPetStore() {
return petStore;
}
与spring2.5集成以后用WebApplicationContextUtils来获取WebApplicationContext
分享到:
相关推荐
这是一个struts 1.2 + spring 2.5 + hibernate 3.2框架demo, 运行环境为eclipse 3.2 + tomcat 5.5 + oracle 11g
没有导入类包,名位请自己导
如题,本项目是一个简单的解决关于Struts1.2上传下载问题的Demo。 希望对需要的你有所帮助。
struts1.2数据库sql server2005 struts1.2数据库sql server2005struts1.2数据库sql server2005
自己做的小demo,struts1.2最常用的各项功能都已经整合。
ibatis spring struts1.2整合demo
struts1.2
使用Eclipse开发Struts1.2文档,自己总结的资料,希望与各位同志多交流
struts1.2 spring2 ibatis 集成项目实战源码
学习对象:熟悉JavaScript, 了解JSTL, servlet/JSP, Struts 1.2, Hibernate, Spring, Ajax技术。 该示例使用MyEclipse 5.5 IDE用来整合四个技术(Struts 1.2, Spring 2.0, Hibernate 3.2和Ajax技术)的轻量级的...
由于上传限制,lib包不能上传,大家可以下载spring2.5版本的支持库(下最大的那个zip包),全部加进去就行了,还有mysql的连接包,项目很简单,直接导入eclipse,就可以使用,包内有mysql的sql文件,框架已经搭好,...
单文件的demo。myeclipse6.0的工程
myeclipse整合Struts1.2+Hibernate3.2+Spring2.5的留言板demo,可以参考参考,希望对你能有帮助,其中lib下的jar包对于ssh工程可以直接使用,原文地址: ...
呵呵很简单,但是和struts1.2比较起来还是有点不同!
Struts 2.3.1.2+Spring 3.1.1+mybatis 3.1.0+mysql JSP基础框架 包含有一个简单的DEMO实例
利用struts1.2,hibernte3.0 mysql数据库 做的一个学生对班级增删改查的例子
1)Demo 学习要点简介: ...2.Eclipse 导入后可能需要在 Xml Catalog 手动添加:ehcache-spring-1.2.xsd(ehcache-spring-annotations-1.2.0-sources.jar里面有,自己找下)。 3.内附Oracle建表等可执行语句。
这是一个经过改写的struts1.2 使用方便,可以在某种程度上提高开发效率 具体使用方法 1.建普通项目,并加入相应的STRUTS包 稍微改下build属性 加入struts1.2框架,用默认的包就可以了 2.加入caiban-struts.jar,这个...
struts2-osgi-demo-bundle-2.3.30.jar, struts2-osgi-plugin-2.3.30.jar, struts2-oval-plugin-2.3.30.jar, struts2-pell-multipart-plugin-2.3.30.jar, struts2-plexus-plugin-2.3.30.jar, struts2-portlet-plugin-...