标题:一个JSP小问题(空指针)
取消只看楼主
xiaobohp
Rank: 1
等 级:新手上路
帖 子:64
专家分:0
注 册:2007-4-19
 问题点数:0 回复次数:1 
一个JSP小问题(空指针)

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: java.lang.NumberFormatException: For input string: ""

root cause

java.lang.NumberFormatException: For input string: ""

note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server Platform Edition 9.0_01 logs.

//错误代码
<%@page contentType="text/html"%>
<%@page pageEncoding="GBK" import="model.*"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<jsp:useBean id="thing" scope="page" class="model.Things" />
<jsp:setProperty name="thing" property="*" />
<%
Catalog c = CatalogService.getCatalog(Integer.parseInt(request.getParameter("catalogID")));
CatalogService.addThing(c,thing);
//request.setAttribute("c",c)
%>
<jsp:forward page="ListThings.jsp?id=${c.ID}" />

搜索更多相关主题的帖子: 指针 JSP 
2007-11-11 19:02
xiaobohp
Rank: 1
等 级:新手上路
帖 子:64
专家分:0
注 册:2007-4-19
得分:0 
谢谢

坚持, 只因不原放弃.
2007-11-18 14:48



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-185300-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.558464 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved