摘要: From now on, I will write a blog to show you the integration of Struts2 + Hibernate3 + Spring to develop a CURD application. I am a beginer of SSH framework, so these series blogs may got some mistakes. Please feel free to discuss with me through blog reply.This is the final souce category of my CUR 阅读全文
posted @ 2012-08-17 15:00 Enix 阅读(408) 评论(0) 推荐(0) 编辑
摘要: struts2 的web 项目中为了方便的编写jsp,标签是最好的选择1:struts2 标签库的定义在**-core-版本号.jar META-INF 路径下找到struts-tags.tld文件;使用该标签需要在web 项目里面导入标签库: A:在web.xml文件 (默认 可以省略) 1. <taglib> 2. <taglib-uri>/struts-tags</taglib-uri> 3. <taglib-location>/WEB-INF/lib/*.jar</taglib-location> 4. <taglib& 阅读全文
posted @ 2012-08-17 10:39 Enix 阅读(142) 评论(0) 推荐(0) 编辑
摘要: struts2 Result类型(跳转)2011-12-28 09:44:10|分类:java|字号订阅Result 类型Action 中表示跳转的目的地使用了在 struts.xml 配置的字符串, 格式为: <result name=”” type=””></result>,type 可以有多种选择,Struts2 支持各种视图技术,例如 JSP、JSF、XML 等,默认的是 JSP。常见的 type 类型配置如下:dispatcher转发到 JSP 页面,和<jsp:forward page=””/>的效果一样,是默认类型。<result> 阅读全文
posted @ 2012-08-17 10:38 Enix 阅读(125) 评论(0) 推荐(0) 编辑