最近用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 ...
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.addCookie(cookie);
2.读取Cookie ...
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 ...
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-00401C608500}","componentid ...
- 15:15
- 浏览 (107)
- 评论 (0)







评论排行榜