- 博客(75)
- 资源 (1)
- 收藏
- 关注
原创 如何使用soapUI发送包含wss认证请求
什么是wss认证?wss全称是WebService Security。对于wss认证详细参考以下链接:https://www.oasis-open.org/committees/download.php/16782/wss-v1.1-spec-os-UsernameTokenProfile.pdfhttps://www.oasis-open.org/committees/download.php/16782/wss-v1.1-spec-os-UsernameTokenProfile.pdf...
2021-12-17 16:56:59 1829
原创 js/jquery问题
1,用ajax刷新iframe后,要获取该iframe的元素需重新获取。$(window.frames["frame"].document);2,全选第二次不行可以用遍历checkobx设置this.checked=true;的方式全选和反选
2013-06-22 19:43:10 625
原创 jsp Attribute qualified names must be unique within an element
jsp页面报:org.apache.jasper.JasperException: /XXX/XXX.jsp Attribute qualified names must be unique within an element org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.jav...
2013-06-19 16:13:40 409
转载 Struts注意問題
1,使用jquery getJSON獲取頁面構造的json數據時,中文會亂碼,解決方案:在構造json頁面獲取屬性如:.2.action type="chain"是 值為action名字.3.
2013-04-09 18:25:27 582
转载 spring使用多个PropertyPlaceholderConfigurer的配置
Spring中PropertyPlaceholderConfigurer这个类,它是用来解析Java Properties属性文件值,并提供在spring配置期间替换使用属性值。接下来让我们逐渐的深入其配置。基本的使用方法是:(1) classpath:/spring/include/dbQuery.properties 其中cl
2013-04-08 16:26:09 5691
原创 javax.crypto.BadPaddingException: Data must start with zero
ctionProviderjavax.crypto.BadPaddingException: Data must start with zero at sun.security.rsa.RSAPadding.unpadV15(RSAPadding.java:308) at sun.security.rsa.RSAPadding.unpad(RSAPadding.java:255) at com.sun.crypto.provider.RSACipher.a(DashoA13*..) at
2013-04-08 16:24:35 938
转载 連接池中參數的配置
name:表示你的连接池的名称也就是你要访问连接池的地址auth:是连接池管理权属性,Container表示容器管理type:是对象的类型driverClassName:是数据库驱动的名称url:是数据库的地址username:是登陆数据库的用户名password:是登陆数据库的密码maxIdle,最大空闲数,数据库连接的最大空闲时间
2013-04-08 16:24:30 544
转载 AbandonedObjectPool 的相關屬性
AbandonedObjectPool is used什么情况?AbandonedObjectPool is used (org.apache.commons.dbcp.AbandonedObjectPool@7c12a1) LogAbandoned: false RemoveAbandoned: true RemoveAbandonedTimeout: 30
2013-04-08 16:22:59 730
原创 jquery getJSON從action獲取json格式數據
1.struts配置中定義一個getJSON訪問的action,2.建立action success返回的頁面,頁面中定義格式要與json格式一樣,比如{ "name":"name", "list":[{"name":"name","age","age"}]} 3.頁面獲取-->data.name,data.list[
2013-03-18 11:37:42 65
原创 Access restriction: The type * is not accessible due to restrict
报错信息:Access restriction: The type TaskTopicResolver is not accessible due to restriction on required library NC_DEMO/NC_HOME/modules/uap/META-INF/lib/uapplatform.jar 解决方案1: Eclipse 默认把这些受访问限制的API设成了ER...
2013-03-14 15:22:31 117
原创 MSSQL2005 安装时 “性能监视器计数器要求(错误)” 解决方案
在 “开始” --> “运行”中输入 regedit,开启注册表编辑器。定位到[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib处,在右边的树形目录下可以看到Perflib目录下有004和009两个子目录。在Sql Server 2005 的安装帮助文件中说的是需要查看009目录的注册表项,而我们...
2013-01-13 23:07:30 121
原创 It's a mark for satelite map
google map:1.for love:51°36'26.20"N 2°23'11.90"W
2012-12-03 10:47:44 142
原创 jboss 使用本地ip不能訪問
jboss目錄\standalone\configuration\standalone.xml 287行<interfaces> <interface name="management"> <inet-address value="${jboss.bind.address.management:0.0.0.0}...
2012-11-22 17:58:22 97
原创 ognl.MethodFailedException: Method "setXxx" failed for object 集結
(1)just change the logging level. 改變日誌等級 log4j.properties: # Struts OgnlUtil issues unimportant warnings log4j.logger.com.opensymphony.xwork2.util.OgnlUtil=error log4j.logger.com.opensymp...
2012-10-15 11:45:36 219
原创 hibernate配置二级缓存出现的问题
(1)解决方案:少了commons-logging-1.1.1.jar这个包了Exception in thread "main" java.lang.ExceptionInInitializerErrorat cn.sjg.hibernate.CacheTest.addUser(CacheTest.java:32)at cn.sjg.hibernate.CacheTest...
2012-10-14 22:07:46 193
原创 No unique bean of type [com.xxx.service.Ixxx] is defined: expected single matchi
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.xxx.service.impl.TestxxxImpl': Unsatisfied dependency expressed through bean property 'xxx': ...
2012-08-29 14:22:08 23171
原创 org.dbunit.dataset.NoSuchColumnException:xxx.xxx
hibernate 配置文件 <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dt...
2012-08-29 10:56:58 568
原创 無主鍵表 Attribute "xxx " must be declared for element type "xxx"
<class name="xxx" table="xxx"> <composite-id> <key-property name="xx"> <column name="xx" sql-type="decimal" precision="4" scale=&qu
2012-08-28 16:22:28 847
js 問題
1.head... <script> alert(document.getElementById("xx"));</script>body....<label id="xx">yy</label> 發現alert出來為空。網上找了下,原因是js在頁面載入完就開始執行,所以可以把...
2012-08-22 14:18:31 65
原创 org.apache.jasper.JasperException: Unable to compile class for JSP:
转至:http://saber5d.blog.163.com/blog/static/1279987782010119113746918/type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this reque...
2012-08-21 22:50:08 99
原创 Batch update returned unexpected row count from update [0]
转至:http://www.cnblogs.com/Byrd/archive/2012/3/26.html1.Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1Batch update returned unexpected row count fro...
2012-08-21 16:01:02 573
原创 org.springframework.beans.factory.BeanCreationException
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [com/springContext-xxx.xml]: Invocation of init method failed; ne...
2012-08-20 17:25:52 75
原创 JS实现Trim()
转至:http://www.cnblogs.com/qixuejia/archive/2010/08/11/1797523.html //js去除空格函数//此处为string类添加三个成员String.prototype.Trim = function(){ return Trim(this);}String.prototype.LTrim = function(){retu...
2012-08-03 16:07:36 69
表单提交乱码原因
http://wenku.baidu.com/view/e01d7127ccbff121dd3683ba.html 上篇文章已经说了关于表单提交乱码后怎么解决。但因为我在页面传的值很多所以没使用上述方法解决。 提交表单到action后出现乱码。如图: 原因是:form标签没加method,默认为get。所以提交后发现参数有出现且没有乱码,但action里出现乱码...
2012-08-03 15:41:45 75
原创 字符,字节和编码
字符,字节和编码[转至:http://www.regexlab.com/zh/encoding.htm]摘要:本文介绍了字符与编码的发展过程,相关概念的正确理解。举例说明了一些实际应用中,编码的实现方法。然后,本文讲述了通常对字符与编码的几种误解,由于这些误解而导致乱码产生的原因,以及消除乱码的办法。本文的内容涵盖了“中文问题”,“乱码问题”。掌握编码问题的关键是正确地理解相...
2012-07-20 14:13:00 58
原创 org.apache.catalina.LifecycleException: Failed to start component
org.apache.catalina.LifecycleException: Failed to start component报错原因:1.注意web.xml的过滤器的mapping的url-pattern。我的项目原因是因为点号前面没有加反斜杠。在网上看到也有人在最前面忘加斜杠。大多是表达式写错了。...
2012-07-20 12:15:29 93
原创 ArrayList.remove()的一个小细节
转至:http://shmilyaw-hotmail-com.iteye.com/blog/1447631 ArrayList除了下面小细节以外,还有个小细节。 就是下面删除array 10个以上的元素。首先我是这么写的: for(int i = 9;i<array.size;i++) array.remove(i);一开始有50个数据,然后删除 后...
2012-07-18 11:39:21 114
web.xml error-page 不起作用原因
xml.xml error-page配置如下:<error-page> <error-code>404</error-code> <location>/error404.jsp</location></error-page><error-page> <e
2012-07-17 14:51:05 359
web.xml error-page 不起作用原因
t; <exception-type>java.lang.Exception<exception-type> <location>/exception.jsp<location></error-page>404页面可以显示而异常页面确未显示。网上搜寻了下,只找到原因1。1.在IE工具->Internet选项-&g
2012-07-17 14:51:05 148
原创 java.lang.IndexOutOfBoundsException: Remember that ordinal parameters are 1-base
原因:1.参数用“?”时 ,周围不能加单引号,否则被当作字符串处理了
2012-07-17 10:59:31 97
原创 hibernate query.list() 返回的数据类型
转至:http://blog.csdn.net/lychaox/article/details/6825078 在hibernate中,用hql语句查询实体类,采用list方法的返回结果为一个List,该List中封装的对象分为以下三种情况: 1.查询全部字段的情况下,如"from 实体类",list中封装的对象为实体类本身,各属性都将得到填充。 2.只查询一个字段,...
2012-07-17 10:17:03 249
原创 利用压缩网页来提升网站浏览速度
转至 :http://blog.csdn.net/joliny/article/details/2124344在线查询:http://tool.chinaz.com/Gzips 本文主要介绍如何通过对页面进行压缩从而节省网站的带宽以及提升用户的访问速度。网站的访问速度是由多个因素所共同决定的,这些因素例如应用程序的响应速度、网络带宽、服务器性能、与客户端之间的网络传输速度...
2012-07-16 11:19:54 63
apache 301重定向
之前在网上找了很多方法,代码很多,但是不够清楚,作为新手的我,无从下手,之后csdn的大神给了我灵感,然后就成了。http://abc.com的域名下所有页面301重定向到http://www.abc.com下相对应页面,301永久性重定向被大多数搜索引擎支持。如果有多个域名,后面直接加OR1.apache-->conf目录下的httpd.conf的LoadModule rew...
2012-07-13 16:19:51 67
原创 java获取ip
转至 http://www.iteye.com/topic/1124070 只能获取到最外端口的ip,不能够具体到局域网的ip。public static String getIpAddr(HttpServletRequest request) { String ipAddress = null; //ipAddress = request.getRe...
2012-07-05 11:48:01 68
原创 获取页面高宽
<script> function getInfo() { var s = ""; s += " 网页可见区域宽:"+ document.body.clientWidth; s += " 网页可见区域高:"+ document.body.clientHeight; s += " 网页可见区域宽:"+ document.body.offsetWidth + " (...
2012-06-26 17:42:24 67
java.lang.RuntimeException: Invalid action class configuration that references a
今天突然发现此异常。网上找了下,有很多原因就集合下。1。可能存在的问题是 struts.xml对应的这个action 没有配好 例如 action里的return的内容在 result里找不到 或者是表单提交的action没配置2。spring与struts整合后再spring中配置的action没加scope="prototype"3。在setXXX()时...
2012-06-23 21:07:39 97
java.lang.RuntimeException: Invalid action class configuration that references a
sult里找不到 或者是表单提交的action没配置2。spring与struts整合后再spring中配置的action没加scope="prototype"3。在setXXX()时报错。于是在页面上看到隐藏控件的value属性没有写上双引号,加上双引号问题解决。4。也就是我的项目出的问题原因:页面传了包含文字的double值,action里获取的时候就报错了。5。还有一个和上面一样传参问题,就是form里的action里面有设置pageno
2012-06-23 21:07:39 136
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人