关于一个green hand的jsp问题,我已经没办法了!!!

chesterwoo 2001-06-12 06:18:00
我是green hand,今日编写jsp代码出错,尝试解决未果,只得求助各位朋友。
代码片段如下:
......
<jsp:useBean id="entry" class="sales.SaleEntry"/>

<jsp:setProperty name="entry" property="itemID" value='<%=request.getParameter("itemID")%>'/>

<%
int numItemsOrdered=1;
try
{
numItemsOrdered=Integer.parseInt(request.getParameter("numItems"));
}
catch(NumberFormatException nfe) {}
%>
......

错误提示如下:
500 Servlet Exception
/MyTest/JavaBean_2/SaleEntry.jsp:41: 期望 <identifier>
catch(NumberFormatException) {}
^
/MyTest/JavaBean_2/SaleEntry.jsp:44: 期望 ')'
pageContext.write(_jsp_string1, 0, _jsp_string1.length);
...全文
99 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
chesterwoo 2001-10-19
  • 打赏
  • 举报
回复
well i need score to give others. so i have to retrieve more score.
chesterwoo 2001-06-12
  • 打赏
  • 举报
回复
另附.我的运行环境为win2000 server+apache1.3.19+resin1.3.b1.

81,115

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧