Cookie类的问题 这是他自己写的函数。你看一下他引用了哪些class,然后去找函数的说明 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Cookie theCookie = null; Cookie cookies[] = request.getCookies(); if (cookies != null) { for(int i=0, n=cookies.length; i < n; i++) { theCookie = cookies[i]; if (theCookie.getName().equals("cart_id")) { try { cart_id.setAttribute("name",theCookie.getValue()); } catch (NumberFormatException ignored) { } break; } } } java Matcher group 的问题 如何处理2个类和两个表 myeclipse连接oracle处错误 如何在已经建立的socket内继续发送消息 如何利用jsp从邮件服务器数据库中解析邮件? 以下程序是否能在web中测试 简单问题!!!!!!!!! 我不信,BCB上就没有了高手!如真不能解决,耻辱! 新手求帮助!真的是! 如何能快速地在一个有10万个字符长度的字符串中快速地统计某个字符出现的总次数????正则表达式或其他方法吗? 日历中的周问题,大虾接招.分不够再给 java中的数据库连接问题
Cookie cookies[] = request.getCookies();
if (cookies != null) {
for(int i=0, n=cookies.length; i < n; i++) {
theCookie = cookies[i];
if (theCookie.getName().equals("cart_id")) {
try {
cart_id.setAttribute("name",theCookie.getValue());
} catch (NumberFormatException ignored) {
}
break;
}
}
}