For input string:"name"问题,请教!!!!
异常:
严重: Servlet.service() for servlet jsp threw exception
java.lang.NumberFormatException: For input string: "gxdwmc"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at javax.el.ListELResolver.coerce(ListELResolver.java:166)
at javax.el.ListELResolver.getValue(ListELResolver.java:51)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
Action:
public String pjd_Tesk() {
ServletRequest request = ServletActionContext.getRequest();
//String jjdbh = request.getParameter("jjdbh");
String id = "2009101010045280001";
try {
JcjJjdb jjd_infos = pjdTeskService.listJjd_infos(id);
request.setAttribute("jjd_infos", jjd_infos);
if(jjd_infos.getJcjBjfsb().getBjfsdm() != null || jjd_infos.getJcjBjfsb().getBjfsdm().length()!=0){
List<JcjGxdwb> gxdw_infos = pjdTeskService.listGxdws(jjd_infos.getJcjBjfsb().getBjfsdm());
request.setAttribute("gxdw_infos", gxdw_infos);
}
JcjPjdb listPjd_infos = pjdTeskService.listPjd_infos(id);
request.setAttribute("pjd_infos", listPjd_infos);
return "success";
} catch (JcjServiceException e) {
// TODO Auto-generated catch block
e.printStackTrace();
addActionError(e.getMessage());
return "false";
}
}
jsp:
<div
style="width: 500px; height: 208px; background-color: #FFCCFF">
<s:iterator id="gxdw_infos" value="#request.gxdw_infos">
<input name="pjd.gxdwb.gxdwmc" type="button"
style="width: 70px; height: 35px; background-color: #497664; font-size: 16px"
value="${gxdw_infos.gxdwmc}" />
</s:iterator>
</div>
找了半天了,都不知道是错在那里,对了,我整个流程都没有用到
Integer.parseInt("");类似的东东!!
谢谢!!
在线等......