JSP里保存数组的错误,求救
String lid = request.getParameter( "LID ");
String slist [] = new String [200];
int i = 0;
slist = (String []) session.getAttribute( "shoplist ");
slist [i] = lid;(这行报错)
session.setAttribute( "shoplist ",slist);
为什么啊??
------解决方案--------------------slist = lid;