Hi all,
I'm trying to deploy some JSP files created on IPlanet 6.0 application
server. However, I encountered the following error when I tried to view my
jsp pages.
[23/Aug/2000 17:37:06:5] error: Exception: Servlet-compile_failed: Failed in
compiling template: /estmtTest/fxdetails.jsp <NULL>
Exception Stack Trace:
java.lang.NullPointerException
at com.netscape.server.servlet.misc.QuickCacheStruct.get(Unknown
Source)
at com.netscape.server.servlet.misc.QuickCacheStruct.get(Unknown
Source)
at com.netscape.server.servlet.jsp.JSPMap.uriToLocalizedURI(Unknown
Source)
at com.netscape.jsp.JSP.resolveLocalizedName(Unknown Source)
at com.netscape.jsp.JSP.resolveName(Unknown Source)
This problem seems to occur because I used the jsp include tag in my code.
Cause whenever, I remove it, the pages display fine. The jsp include tag is
shown below.
<!-- Add a Horizontal Line here -->
<jsp:include page="HLine.html" flush="true" />
The contents of the Hline.html file is:-
<table width="670" border="0">
<tr>
<td width="100%">
<hr>
</td>
</tr>
</table>
This doesn't make sense because I used jakarta-tomcat during the development
of the JSPs and everything was fine and dandy. Furthermore, both IAS6.0 and
jakarta tomcat documentation specify that they support the JSP 1.1
specification.
My source file is shown below. I would really appreciate any feedback on
this problem. Thanks in advance.
Source FILE:
=========
<% response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
response.setHeader("Expires", "1800");
%>
<%@ page import = "estmt.common.ESFXDetailsPg" errorPage="???" %>
<jsp:useBean id="fxDetailBean" class="estmt.javabean.ESFXJB" scope="page">
<jsp:setProperty name="fxDetailBean" property="*" />
</jsp:useBean>
<%-- fxDetailBean.getFXDetails(); --%>
<%
ESFXDetailsPg fxDetail = (ESFXDetailsPg) fxDetailBean.getFXDetails();
%>
<% System.out.println("INSIDE ESFxDetailContent.jsp"); %>
<% System.out.println("Query String: " + request.getQueryString()); %>
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>E-statement FX Detail Screen</TITLE>
<STYLE TYPE="text/css">
<!--
A { text-decoration: none; }
-->
</STYLE>
<META http-equiv="Pragma" content="no-cache">
</HEAD>
<BODY aLink=#000033 bgColor=#ffffff link=#0033ff text=#000000 vLink=#0099ff
leftmargin="0" topmargin="0">
branch: <jsp:getProperty name="fxDetailBean" property="branch"/>
customerNum: <jsp:getProperty name="fxDetailBean" property="customerNum" />
refNo: <jsp:getProperty name="fxDetailBean" property="refNo" />
seqNo: <jsp:getProperty name="fxDetailBean" property="seqNo" />
<table width="670" border="0">
<tr>
<td colspan="2"> </td>
<td width="22%"> </td>
<td width="15%"> </td>
</tr>
</table>
<table width="670" border="0">
<tr>
<td width="26%"><font face="Arial, Helvetica, sans-serif" size="2"><%=
fxDetail.getBranchName() %></font></td>
<td width="37%">
<div align="center"><font face="Arial, Helvetica, sans-serif" size="2">
FOREIGN EXCHANGE CONTRACT </font></div>
</td>
<td width="6%"><font face="Arial, Helvetica, sans-serif"
size="2"></font></td>
<td width="31%"><font face="Arial, Helvetica, sans-serif"
size="2">REF <%= fxDetail.getRefNo() %></font></td>
</tr>
<tr>
<td colspan="2"><font size="2">NAME: <%= fxDetail.getCustomerName()
%> </font></td>
<td width="6%"><font size="2"></font></td>
<td width="31%"><font size="2">BASE NO.: <%=
fxDetail.getCustomerNum() %> </font></td>
</tr>
</table>
<!-- Add a Horizontal Line here -->
<%@ include file="HLine.html" %>
<table width="670" border="0">
<tr>
<td width="404"><font size="2">WE CONFIRM THE FOREIGN EXCHANGE DEAL
OF</font></td>
<td width="195"><font size="2"> <%= fxDetail.getTakedownDate() %>
</font></td>
</tr>
</table>
<table width="670" border="0">
<tr>
<td width="140" height="32"><font size="2">AMOUNT BROUGHT </font></td>
<td width="35" height="32"><font size="2"><%= fxDetail.getPurchaseCcy()
%> </font></td>
<td width="96" height="32"><font size="2"><%=
fxDetail.getPurchaseAmount() %> </font></td>
<td width="27" height="32"> </td>
<td width="140" height="32"><font size="2">AMOUNT SOLD</font></td>
<td width="35" height="32"><font size="2"><%= fxDetail.getSaleCcy() %>
</font></td>
<td width="96" height="32"><font size="2"><%= fxDetail.getSaleAmount()
%></font></td>
</tr>
</table>
<!-- Add a Horizontal Line here -->
<jsp:include page="HLine.html" flush="true" />
<table width="670" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="14%"><font size="2">RATE</font></td>
<td width="28%"><font size="2"><%= fxDetail.getFX() %> </font></td>
<td width="11%"><font size="2">VALUE</font></td>
<td width="32%"><font size="2"><%= fxDetail.getValueDate() %>
</font></td>
<td width="15%"><font size="2"></font></td>
</tr>
</table>
<!-- Purchase and Sale textual information (11 lines of text) -->
<table width="670" border="0">
<tr>
<td width="43%"><font size="2"> </font></td>
</tr>
<tr>
<td width="43%"><font size="2"> <%= fxDetail.getPurchase1Text() %>
</font></td>
</tr>
<tr>
<td width="43%"><font size="2"> </font></td>
</tr>
<tr>
<td width="43%"><font size="2"> </font></td>
</tr>
<tr>
<td width="43%"><font size="2"><%= fxDetail.getSale1Text() %>
</font></td>
</tr>
<tr>
<td width="43%"><font size="2"> </font></td>
</tr>
<tr>
<td width="43%"><font size="2"> </font></td>
</tr>
<tr>
<td width="43%"><font size="2"><pre><%= fxDetail.getFXText()
%></pre></font></td>
</tr>
<tr>
<td width="43%"><font size="2"><%= fxDetail.getConfirmText() %>
</font></td>
</tr>
</table>
<table width="670" border="0">
<tr>
<td
width="63%">************************************************************</td
>
<td width="37%"><font size="2">BOOKED ON <%= fxDetail.getBookDate() %>
</font></td>
</tr>
</table>
</BODY>
</HTML>
Cheers'
Henry Hooi Tak Keong
Financial Services Industry
National Computer Systems Pte Ltd
DID : (65) 7769776 Pg: (65) 98016579
Fax : (65) 7744395
email : [EMAIL PROTECTED]
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets