已采纳回答 / 小明_
<%@ page language="java" import="java.util.*" pageEncoding="GB18030"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <title>My JSP 'test.jsp' starting page</title> </hea...
2016-03-26
已采纳回答 / zoeyqq
import java.util.ArrayList;import java.util.List;public class TestList { public static void main(String[] args) { // TODO Auto-generated method stub List list=new ArrayList(); int i=list.size(); if(list==null) { System.out.println("list为空"); Syst...
2016-03-24
已采纳回答 / 未闻丶花名
你都没有获取传过来的用户名和密码,那当然是登陆失败了username = request.getAttribute("username");password = request.getAttribute("password");
2016-03-22
已采纳回答 / 安静yo_yo
list = c.getValue()获取的是Cookie中,ListViewCookie里面已经的存储的商品ID,再执行list+=request.getParameter("id")+",";是为了把目前点击商品详情的这个新的ID值放进Cookie中的ListViewCookie里面。好比原来Cookie里面是1,2,3。list = c.getValue();的值就是 1,2,3,刚点击的商品ID是4;list+=request.getParameter("id")+",";的值就是1,2,3,4,...
2016-03-15