I have a large webpage (~150 KBytes) which needs to be broken up so that it
doesn't exceed Java's 64 KByte limit per method. So the main.jsp looks like
the following:

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html:html>

<body text="#000000" bgcolor="#FFFFFF" leftmargin="0" topmargin="0"
marginheight="0"
marginwidth="0">
<html:form action="overview.do" >

<TABLE BORDER="0" CELLPADDING="2" CELLSPACING="0" WIDTH="650">
 <TR>
        <jsp:include page="Loan_Head.jsp" /> 
 </TR>
<tr>
        <jsp:include page="Contact_General_Loan.jsp" /> 
</tr>
        ......
<tr>
        <jsp:include page="Override.jsp" />
</tr>
</table>
</html:form>
</html:html>

Each of the included files requires its own taglib declaration statements:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

Otherwise the Struts statements are not parsed. This works great for the
"Loan_Head.jsp" file, but extending this practice to the
"Contact_General_Loan.jsp" file results in the following error.

Request URI:/bsa/jsp/overview/overview.jsp
Exception:
java.lang.NullPointerException 

Why??? I am using Oracle9iAS 9.0.3 and Struts 1.1B. Is this a Struts bug??
How can I work around this problem?? Please don't suggest that I use Tiles,
because I first need to have the simple stuff in Struts working correctly,
before I can move onto the more advanced features.

Thanks, Norman


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to