这个是什么错误啊
typeExceptionreportmessageAnexceptionoccurredprocessingJSPpage/manage/exercise/video_...
type Exception report
message An exception occurred processing JSP page /manage/exercise/video_edit.jsp at line 43 40: <option value="-1">--璇烽�鎷�-</option> 41: <% 42: List<Category> list = (List<Category>) request.getAttribute("list"); 43: for (Category category : list) { 44: %> 45: <option value="<%=category.getCategoryid()%>"<%if(video.getCategoryid()==category.getCategoryid()){ %>selected<%} %> > 46: <%=category.getName()%></option> Stacktrace:
description The server encountered an internal error (An exception occurred processing JSP page /manage/exercise/video_edit.jsp at line 43 40: <option value="-1">--璇烽�鎷�-</option> 41: <% 42: List<Category> list = (List<Category>) request.getAttribute("list"); 43: for (Category category : list) { 44: %> 45: <option value="<%=category.getCategoryid()%>"<%if(video.getCategoryid()==category.getCategoryid()){ %>selected<%} %> > 46: <%=category.getName()%></option> Stacktrace:) that prevented it from fulfilling this request.
exception 展开
message An exception occurred processing JSP page /manage/exercise/video_edit.jsp at line 43 40: <option value="-1">--璇烽�鎷�-</option> 41: <% 42: List<Category> list = (List<Category>) request.getAttribute("list"); 43: for (Category category : list) { 44: %> 45: <option value="<%=category.getCategoryid()%>"<%if(video.getCategoryid()==category.getCategoryid()){ %>selected<%} %> > 46: <%=category.getName()%></option> Stacktrace:
description The server encountered an internal error (An exception occurred processing JSP page /manage/exercise/video_edit.jsp at line 43 40: <option value="-1">--璇烽�鎷�-</option> 41: <% 42: List<Category> list = (List<Category>) request.getAttribute("list"); 43: for (Category category : list) { 44: %> 45: <option value="<%=category.getCategoryid()%>"<%if(video.getCategoryid()==category.getCategoryid()){ %>selected<%} %> > 46: <%=category.getName()%></option> Stacktrace:) that prevented it from fulfilling this request.
exception 展开
2个回答
展开全部
怀疑是JSP容器版本问题。你先试着简单修改一下:
<%
List<Category> list = (List<Category>) request.getAttribute("list");
if(list==null) System.out.println("list == null!!!"); //此处简单判断一下是否为空,虽然不正规,做测试用足够了
for(int i=0; i<list.size(); i++){ //此处for循环不使用Category category : list方式,测试是否是版本问题造成的
Category category = list.get(i);
%>
测试完看看结果怎样。
<%
List<Category> list = (List<Category>) request.getAttribute("list");
if(list==null) System.out.println("list == null!!!"); //此处简单判断一下是否为空,虽然不正规,做测试用足够了
for(int i=0; i<list.size(); i++){ //此处for循环不使用Category category : list方式,测试是否是版本问题造成的
Category category = list.get(i);
%>
测试完看看结果怎样。
来自:求助得到的回答
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询