- 浏览: 83792 次
- 性别:
- 来自: 杭州
-
最新评论
-
jzm0902:
赞一个
JS的event对象 -
zhangweichina:
非常感谢,帮我解决了一个让我头疼了很久的问题
Struts2 上传文件 -
llxhna:
一美女一美女一美女一美女一美女
jQuery类对象数组操作 -
othella:
qq38450529 写道请教:ellipsis.xml里面是 ...
用CSS做字符截断 -
qq38450529:
请教:ellipsis.xml里面是什么内容?
用CSS做字符截断
文章列表
转载地址:http://www.wujianrong.com/archives/2006/12/javalangoutofmemoryerror_permg.html
PermGen space的全称是Permanent Generation space,是指内存的永久保存区域
OutOfMemoryError: PermGen space从表面上看就是内存益出,解决方法也一定是加大
内存。说说为什么 ...
- 2008-08-14 09:45
- 浏览 1952
- 评论(0)
使用String.split方法时遇到的问题(转载)
http://blog.csdn.net/jame_peng/archive/2006/05/22/749308.aspx
使用String.split方法时遇到的问题
今天在使用String.split()方法时因为使用"|"作分割符,总是得不到结果。于是在网上Google了一下,终于找到了答案。
在使用String.split方法分隔字符串时,分隔符如果用到一些特殊字符,可能会得不到我们预期的结果。
我们看jdk doc中说明
public String[] split(String regex)
Splits th ...
- 2008-08-12 13:37
- 浏览 1202
- 评论(0)
最近用jdk1.5做了个小项目,在weblogic8.1上发布就抛如下错误:
Error 500--Internal Server Error
javax.servlet.jsp.JspException: Exception creating bean of class com.webex.struts.form.LogonForm: {1}
at org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:487)
at org.apache.struts.taglib.html.FormTag.doStartTag( ...
- 2008-05-07 17:00
- 浏览 6917
- 评论(0)
1.设置Cookie
Cookie cookie = new Cookie("key", "value");
cookie.setMaxAge(60); //设置60秒生存期,如果设置为负值的话,则为浏览器进程Cookie(内存中保存),关闭浏览器就失效。
cookie.setPath("/test/test2"); //设置Cookie路径,不设置的话为当前路径(对于Servlet来说为request.getContextPath() + web.xml里配置的该Servlet的url-pattern路径部分)
response.a ...
- 2008-04-24 15:42
- 浏览 4391
- 评论(2)
1,设置cookie(name是自定义的cookie名字标识,value为保存的信息,expires为有效时间,path存放路径,domain存放域名(没怎么用),secure貌似没用到
//set cookie
function set_cookie(name,value,expires,path,domain,secure )
{
// set time, it's in milliseconds
var today = new Date();
today.setTime(today.getTime());
if (expires){
expires = expires * 1000 * ...
- 2008-02-22 16:15
- 浏览 1218
- 评论(0)
XP系统
1.在html里面声明自定义tag名称MSIE
<html xmlns:MSIE>
2.加入该段代码
<STYLE>
@media all {
MSIE\:CLIENTCAPS {behavior:url(#default#clientcaps)}
}
</STYLE>
3.页面上设置控件
<MSIE:CLIENTCAPS ID="oClientCaps" />
4.判断是否有JVM
oClientCaps.isComponentInstalled("{08B0E5C0-4FCB-11CF-AAA5-0 ...