Cookie myCookie = new Cookie("product_id"+id,URLEncoder.encode(id+"#"+title+"#"+picpath));
for(int i=0;i<cookie.length;i++){
if(cookie[i].getName().subString(0,10).equel("product_id")){
String cValue = URLDecoder.decode(cooki[i].getValue());
String info[] = cValue.split("#");
id:<%=info[0] %>
title:<%=info[1] %>
picpath:<%=info[2] %>
}
}
jsp cookie遍历
最新推荐文章于 2021-09-07 20:04:24 发布