一个struts例子老出现如下错误,请高手来看看。。。。

04-06-11 zhangzhaoh
InvList.jsp的代码如下:
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ page contentType="text/html; charset=GBK" %>
<%@ page contentType="text/html; charset=GBK" %>
<html:html>
<head>
<title>
invlist
</title>
</head>
<body>
<h1>JBuilder Generated Struts JSP for ActionForm bmpbis.InvListActionForm</h1>
<p>
<html:form action="/InvListAction.do" method="POST">
<html:text property="wivBlNo"/>
<br>
<html:text property="wivContainerId"/>
<br>
<html:text property="wivCustCode"/>
<br>
<html:text property="wivGenEndDate"/>
<br>
<html:text property="wivGenStartDate"/>
<br>
<html:text property="wivInvoiceNo"/>
<br>
<html:text property="wivIoFlag"/>
<br>
<html:text property="wivSysNo"/>
<br>
<html:submit property="submit" value="Submit"/><br>
<html:reset value ="Reset"/>
</html:form>

<table>
<logic:iterate id="list" name="InvListAction" type="bmpbis.InvValue" indexId="index">>
<tr>
<td>
VOYAGE: <bean:write name="tbl" property="wivVoyage"/>
</td>
<td>

</td>
</tr>
</logic:iterate>
</table>

</body>
</html:html>

错误如下:

XXX bad jar classes12.zip
"InvList.jsp": java.lang.NullPointerException
"InvList.jsp": error:org.apache.jasper.JasperException: Error compiling \InvList.jsp


"InvList.jsp": java.lang.NullPointerException老是提示第一句
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
有错,这是怎么回事啊?????

zhangzhaoh
2004-06-11 09:09
// 代码如下:
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ page contentType="text/html; charset=GBK" %>
<%@ page contentType="text/html; charset=GBK" %>
<html:html>
<head>
<title>
invlist
</title>
</head>
<body>
<h1>JBuilder Generated Struts JSP for ActionForm bmpbis.InvListActionForm</h1>
<p>
<html:form action="/InvListAction.do" method="POST">
<html:text property="wivBlNo"/>
<br>
<html:text property="wivContainerId"/>
<br>
<html:text property="wivCustCode"/>
<br>
<html:text property="wivGenEndDate"/>
<br>
<html:text property="wivGenStartDate"/>
<br>
<html:text property="wivInvoiceNo"/>
<br>
<html:text property="wivIoFlag"/>
<br>
<html:text property="wivSysNo"/>
<br>
<html:submit property="submit" value="Submit"/><br>
<html:reset value ="Reset"/>
</html:form>

<table>
  <logic:iterate id="list" name="InvListAction" type="bmpbis.InvValue" indexId="index">>
    <tr>
      <td>
        VOYAGE: <bean:write name="tbl" property="wivVoyage"/>
      </td>
      <td>

      </td>
    </tr>
  </logic:iterate>
</table>

</body>
</html:html>
<p class="indent">

banq
2004-06-11 15:02
"InvList.jsp": error:org.apache.jasper.JasperException: Error compiling \InvList.jsp

你先用Jbuilder编译一下你的Jsp,估计语法出错。

猜你喜欢