随笔分类 - J2EE开发--Struts2框架学习
摘要:First step setup for the pom.xml with hibernate dependency , hibernate dependency need to before the struts2,because the javassist dependency com.google.guava guava RELEASE ...
阅读全文
摘要:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause:...
阅读全文
摘要:Follow the guide in this page:http://blog.csdn.net/topwqp/article/details/8882965problem met :Description Resource Path Location TypeThe superclass "j...
阅读全文
摘要:参考地址:http://blog.csdn.net/xuefei7/article/details/6656993
阅读全文
摘要:参考地址:http://www.newsmth.net/pc/pccon.php?id=2206&nid=398188代码如下;strHTML +="<a class="close" href="#" onclick="$o(/"" + this.id + "/").getTab(/"" + tabpage.id + "/").close(); return false; ">";或者是如下操作:<a href
阅读全文
摘要:原文地址:http://blog.csdn.net/xuedi_manbu/article/details/6523480ognl.OgnlException: target is null for setProperty(null, "y", [Ljava.lang.String;@1a07336) WARN OgnlValueStack:60 - Error setting expression 'ibtnenter.x' with value '[Ljava.lang.String;@1bb00c8'ognl.OgnlException
阅读全文
摘要:你返回原来的页面是如何返回的?是forward还是redirect?先在action里面name,password写get set如果是forward的话,直接jsp页面里写上<input name="name" value="{password}"/> 就可以如果是redirect的话,在struts.xml里要写上<result name="redirect" ......>
阅读全文
摘要:参考说明文档:http://yyzjava.iteye.com/blog/1275455
阅读全文
摘要:*************************************************************配置说明*******************************************************1,struts基本项目的配置;1.1 导入lib目录下相关的struts2的jar包;1.2 重写web.xml使得所有的web请求交给struts2来处理;1.3 编写struts2的配置文件,使得struts2对应处理相关的请求url及其返回相应的请求url;***********************************************
阅读全文
摘要:参考文档地址:http://www.cnblogs.com/chinafine/articles/1801375.html经典参考文章:http://www.cnblogs.com/chinafine/articles/1801344.html(所依赖的jar包说明)使用说明:
阅读全文
摘要:原文地址:http://awfrun.iteye.com/blog/811517最近要做一个新的项目,基本框架是struts2 + hibernate3.2 + spring2.5 。这几天就架构系统,全部都重新整理一下。后台列表的显示用开源的displaytag. 今天在做整合时发现,当页面使用了<s:select ...> 时,displaytag的导出功能就不能使用了,异常堆栈信息:Exception: [.TableTag] Unable to reset response before returning exported data. You are not using
阅读全文
摘要:地址为:http://www.roseindia.net/struts/struts2/index.shtml
阅读全文
摘要:配置的是工程级别的i18n设置如下:1,配置两个i18n所用到的国际化的字符串属性文件,位于src目录下,例如为如下:工程名_zh_CN.properties ,工程名_en_US.properties,在两个配置文件中写上对应的i18n国际化的字符串;2,在struts.xml配置文件中声明一个常量,表明使用i18n(其实内部有一个拦截器的理解在内)<constant name=”struts.custom.i18n.resources” value=”工程名”/>3,前台访问中的字符串展示为<s:property value=”getText(‘字符串’)”/>在超
阅读全文
摘要:1、02_尚学堂马士兵_Struts2_Struts2_HelloWorld_2.avi指定Tomcat的目录,指定JDK搭建开发环境(拷贝jar包,复制struts.xml文件 此文件不要放在WEB-INF下面,应该放到src下面),在web.xml文件中:<filter><filter-name>struts2</filter-name><filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
阅读全文
摘要:http://blog.csdn.net/oxcow/article/details/4516283
阅读全文
摘要:标签属性介绍:set标签set标签 用于将某个值(该值是在value stack或者是action context中的内容值,已有的)放入指定范围内。例如application、session范围等。当某个值所在的对象图深度非常深时,例如如下:person.worker.wife.parent.age,每次访问该值不仅性能地下,而可读性也很差。解决这个问题,可以将改该值设置成一个新值,并放入特定范围内。set标签属性:scope: 可选,指定新变量被放置的范围,该属性可以接受application、session、request、page或action 5个值。如果没有指定,默认是放置在Sta
阅读全文
摘要:最后终于在整理思路的时候解决了。在JSP页面与ACTION之间的桥梁对于程序员来说就是set get方法以及valueStack,既然对方始终获取不了值,那么要么是valueStack有问题(这个框架的东东应该不会错),那就是set get 方法的问题。最后找到使用自动生成set get方法的权限由问题。private 将其更改为public 搞定!!!还是谢谢各位热心帮忙!看到你这种方式,我想你应该是在用 Struts2 吧,Struts2 是用的 WebWork 的核心,它的参数全部由 内部拦截器代理 接收及发送,如果你想在页面接收这一个List 。步骤: 在 Action 里面设这个..
阅读全文
摘要:http://blog.sina.com.cn/s/blog_60952fa30100q7a8.htmlhttp://hujiantao224.iteye.com/blog/608827
阅读全文
摘要:地址:http://www.iteye.com/topic/646851地址:http://developer.51cto.com/art/201203/322509.htm
阅读全文
摘要:tomcat5中,为了保证get数据采用UTF8编码,在server.xml中进行了如下设置:<Connector port="8080" maxThreads="150" minSpareThreads="25"maxSpareThreads="75" enableLookups="false" redirectPort="8443"acceptCount="100" debug="99" connectionTimeout=&
阅读全文