读书人

急求一个jsp代码里头的疑问

发布时间: 2011-11-29 22:04:11 作者: rapoo

急求一个jsp代码里面的疑问
首先在后台servlet代码中,加入了wResultData.setModelCode(),然后在前台jsp文件中取出,显示在叶面,但是总提示Error,请诸位大哥帮我检查一下,看看问题出在那里?而且最好能推荐给我一个好的jsp页面调试工具,谢谢了!

<%@ page errorPage= "/public_html/DAPX/DAPX9999/JspError.jsp " session= "false " contentType= "text/html; charset=GBK "%>

<%@ page import= "JP.co.SMOJ.DAPA.DAPX7010.model.AResultData " %>
<%@ page import= "java.util.* " %>
<%@ page import= "JP.co.SMOJ.DAPA.DAPA0000.model.ACodePatcher " %>
<%
//
String strSessionID = (String)request.getAttribute( "SessionID ");
AResultData wResultData = (AResultData)request.getAttribute(strSessionID);

// XML
String wServerXMLMessage = (String)request.getAttribute( "DAPA0001.APP.XMLMESSAGE ");
if(wServerXMLMessage == null)
{
wServerXMLMessage = " ";
}
%>

<HTML>
<HEAD>
<META HTTP-EQUIV= "Content-Language " CONTENT= "cn ">
<META HTTP-EQUIV= "Content-Type " CONTENT= "text/html; charset=GBK ">
<XML id = "xmlMessage "> <%= wServerXMLMessage %> </XML>
<TITLE> Master Information(DAPX7010) </TITLE>
<LINK REL= "STYLESHEET " TYPE= "text/css " HREF= "/dap/public_html/DAPX/common/DAPX0000.css " TITLE= "DAPX0000.css ">
<SCRIPT language= "JavaScript " src= "/dap/public_html/DAPX/common/DAPX3005.js "> </SCRIPT>
<SCRIPT language= "JavaScript " src= "/dap/public_html/DAPA/DAPA0000/ACodePatcher.js "> </SCRIPT>
<SCRIPT language= "JavaScript " SRC= "/dap/public_html/DAPA/common/CommonFunction.js "> </script>

<SCRIPT language= "JavaScript ">
<!--


function window_onLoad(){
//
var strCartonQty = <%=wResultData.getCartonQty()%> ;
if(strCartonQty == null){
divCartonQty.innerText = " ";
}
else{
divCartonQty.innerText = addComma(strCartonQty+ " ");
}

//
var wResultFlag = checkPopupServerMessage(xmlMessage, window.dialogArguments.parent.parent.parent);

}

// CLOSE
function CallClose()
{
window.close();
}

-->
</SCRIPT>

</HEAD>

<BODY onLoad= "window_onLoad() ">

<table border= "0 " CELLPADDING=0 CELLSPACING=0 width= "100% ">
<tr>
<td>
<!---->
<TABLE CLASS= "tblHeader " height= "34 ">
<TR>
<TD height= "30 "> <b> <font size= "3 "> Master Information </font> </b> </TD>
</TR>
</TABLE>
</td>
</tr>
<tr HEIGHT= "5 ">
<td> </td>
</tr>
<!---->


<tr>
<td height= "205 ">
<TABLE BORDER= "2 " CELLSPACING= "0 " cellpadding= "1 " width= "100% " height= "80% ">
<tr>
<td width= "50% " height= "20 " bgcolor= "#CCFFCC " nowrap>
<b> Country of origin </b>
</td>
<td width= "50% " align= "right " nowrap> <%=ACodePatcher.toHTML(wResultData.getCountry())%> <br> </td>
</tr>
<tr>
<td height= "20 " bgcolor= "#CCFFCC " nowrap>
<b> PR Lead Time </b>
</td>
<td align= "right " nowrap> <%=ACodePatcher.toHTML(wResultData.getPRLT())%> <br> </td>
</tr>
<tr>
<td height= "20 " bgcolor= "#CCFFCC " nowrap>
<b> Planning Cycle </b>
</td>
<td align= "right " nowrap> <%=ACodePatcher.toHTML(wResultData.getPlanCycle())%> <br> </td>
</tr>
<tr>
<td height= "20 " bgcolor= "#CCFFCC " nowrap>
<b> Master Carton qty </b> </td>
<td align= "right " nowrap> <SPAN id= "divCartonQty "> </SPAN> <br> </td>
</tr>
<tr>
<td height= "20 " bgcolor= "#CCFFCC " nowrap>
<b> Initial Ship Week </b>
</td>
<td align= "right " nowrap> <%=ACodePatcher.toHTML(wResultData.getInitialShipWeek())%> <br> </td>
</tr>
<tr>
<td height= "20 " bgcolor= "#CCFFCC " nowrap>
<b> Final Ship Week </b>
</td>
<td align= "right " nowrap> <%=ACodePatcher.toHTML(wResultData.getFinalShipWeek())%> <br> </td>
</tr>
<tr>
<td height= "20 " bgcolor= "#CCFFCC " nowrap>
<b> Division Comp. </b> </td>
<td align= "right " nowrap> <%=ACodePatcher.toHTML(wResultData.getDivComp())%> <br> </td>
</tr>
<tr>
<td height= "20 " bgcolor= "#CCFFCC " nowrap>
<b> Import Flag </b> </td>
<td align= "right " nowrap> <%=ACodePatcher.toHTML(wResultData.getImpFlag())%> <br> </td>
</tr>
<tr>
<td height= "20 " bgcolor= "#CCFFCC " nowrap>
<b> SIH Flag </b> </td>
<td height= "20 " align= "right " nowrap> <%=ACodePatcher.toHTML(wResultData.getSIHFlag())%> <br> </td>


</tr>
</table>
</td>
</tr>
<!---->
<tr HEIGHT= "3 ">
<td> </td>
</tr>
<tr HEIGHT= "30 ">
<TD>
<TABLE CLASS= "tblFooter ">
<TR>
<TDALIGN= "right ">
<INPUT TYPE= "button " CLASS= "btClose " NAME= "ButtonClose " VALUE= "Close " ONCLICK= "CallClose() ">
</TD>
</TR>
</TABLE>
</td>
</tr>
</table>

</BODY>
</HTML>


[解决办法]
jsp调试工具还是有一些的吧。其它的我不知道
myeclipse一定不错。。顶一下

读书人网 >Java Web开发

热点推荐