You're running into a limitation of the JVM I think. Java classes can only have a maximum of 64Kb (?) data heap. If you have a very large JSP, the generated Java source will contain enough string data to exceed that. In my last job our application had one JSP that was sufficiently large and complex to run into this. Quite often the JVM would actually crash when Tomcat tried to compile the JSP!

If that is indeed the problem, you should be able to solve it sections in separate files and re-assembling them with includes in the original JSP.

L.

O. Oke wrote:

Thank you all.

Source code attached and also below.

Please note that it appears to be a maximum number of
xters problem; I am saying this because when I deleted
some blank lines from my JSP source, more HTML code
was  generated.  The problem is that I do not know
where this size is set.

Nevertheless, the source code are as follows:

JSP
===
<%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-html.tld"
prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld"
prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld"
prefix="bean" %>

    <SCRIPT language="JavaScript"
type="text/javascript" src="<html:rewrite
page="/pages/javaScript/transaction.js"/>"></SCRIPT> </head>
    <body>
  <html:form action="/TransferView.do"
onsubmit="return validateTidyUpTransfer('Transfer',
'.do');">
    <table width="85%" border="0" cellspacing="0">
      <tr>
        <td align="right"><bean:message
key="fieldLabel.transfer_id"/></td>
        <td> <html:text property="transfer_id"
size="12" disabled="true"> </html:text></td>

        <td align="right"> <bean:message
key="fieldLabel.created_by"/> </td>
<td> <html:text property="created_by" size="20" maxlength="20"></html:text> </td> <td align="right" width="150"> <bean:message
key="fieldLabel.transferred_on"/> </td>
        <td>   <html:text property="created_on"
disabled="true"></html:text>     </td>
      </tr>
      <tr>
        <td align="right"> <bean:message
key="fieldLabel.collectn_rep_id"/> </td>
        <td>   <html:text
onfocus="goToRepIdsNextItem(); popUpViewIfCS(
'http://localhost/moneyTrans/pages/jsp/reports/repsLOV.jsp',
550, 550, document.forms[0].userRole.value);"
property="collectn_rep_id"  size="10" maxlength="20"
disabled="true"></html:text> </td>


        <td align="right"> <bean:message
key="fieldLabel.collectn_rep_branch_id"/> </td>
        <td>   <html:text
property="collectn_rep_branch_id"  size="2"
maxlength="2"></html:text> </td>
<td align="right"> <bean:message
key="fieldLabel.rep_emp"/> </td>
                <td ><html:select size="1" property="rep_emp">
                <html:options collection="repEmpsList"
property="value" labelProperty="label"/>
        </td></html:select>

      </tr>
      <tr>

          <td align="right"><bean:message
key="fieldLabel.from_country"/></td>
                  <td ><html:select size="1"
property="from_country">
                  <html:options
collection="countriesList" property="value"
labelProperty="label"/>
          </td></html:select>

          <td align="right"><bean:message
key="fieldLabel.to_country"/></td>
                  <td ><html:select size="1" property="to_country">
                  <html:options
collection="countriesList" property="value"
labelProperty="label"/>
          </td></html:select>
<td align="right"><bean:message
key="fieldLabel.from_currency"/></td>
                  <td ><html:select size="1"
property="from_currency">
                  <html:options
collection="currenciesList" property="value"
labelProperty="value"/>
          </td></html:select>
      </tr>
      <tr>

          <td align="right"><bean:message
key="fieldLabel.to_currency"/></td>
                  <td ><html:select size="1" property="to_currency">
                  <html:options
collection="currenciesList" property="value"
labelProperty="value"/>
          </td></html:select>
<td align="right"> <bean:message
key="fieldLabel.exchange_rate"/> </td>
<td> <html:text property="exchange_rate" onchange="document.forms[0].exchange_rate.value =
getExchangeRates(document.forms[0].from_country.value
+ document.forms[0].to_country.value);"></html:text>
</td>
        <td align="right" width="150"> <bean:message
key="fieldLabel.sent_amount"/> </td>
<td> <html:text property="sent_amount" disabled="true"></html:text> </td> </tr>
      <tr>
        <td align="right" width="150"> <bean:message
key="fieldLabel.sent_amount_confirmation"/> </td>
        <td>   <html:text
property="sent_amount_confirmation"  size="12"
maxlength="17"
onblur="validatePr_amount()"></html:text> </td>
          <td align="right"><bean:message
key="fieldLabel.bene_id_type"/></td>
                  <td ><html:select size="1"
property="bene_id_type">
                  <html:options
collection="idTypesList" property="value"
labelProperty="label"/>
          </td></html:select>

        <td align="right"> <bean:message
key="fieldLabel.exchange_rate"/> </td>
<td> <html:text property="exchange_rate" size="12" maxlength="22" disabled="true"></html:text>
</td>
<td align="right"> <bean:message
key="fieldLabel.payable_amount"/> </td>
<td> <html:text property="payable_amount" size="22" maxlength="22"></html:text> </td>
      </tr>
      <tr>
        <td align="right"> <bean:message
key="fieldLabel.bene_question"/> </td>
<td> <html:text property="bene_question" size="28" maxlength="40"></html:text> </td>

        <td align="right" width="150"> <bean:message
key="fieldLabel.bene_answer"/> </td>
        <td>   <html:text
onblur="document.forms[0].payout_addr.focus()"
property="bene_answer"  size="28"
maxlength="40"></html:text> </td>
</tr>
      <tr>

        <td align="right"> <bean:message
key="fieldLabel.payout_code"/> </td>
<td> <html:text property="payout_code" size="20" maxlength="20" disabled="true"></html:text>
</td>


        <td align="right"> <bean:message
key="fieldLabel.payout_amount"/> </td>
<td> <html:text property="payout_amount" size="22" maxlength="22"></html:text> </td> </tr> <tr>
        <td align="right" width="150"> <bean:message
key="fieldLabel.payout_addr"/> </td>
        <td><html:textarea property="payout_addr"
rows="4"  disabled="true" onfocus="popUpView(
'http://localhost/moneyTrans/pages/jsp/reports/payOutPointsLOV.jsp',
550, 550 );"/></td>

        <td align="right"> <bean:message
key="fieldLabel.payout_city"/> </td>
<td> <html:text property="payout_city" size="30" maxlength="30"></html:text> </td> <td align="right"> <bean:message
key="fieldLabel.payout_addr_code"/> </td>
<td> <html:text property="payout_addr_code" size="10" maxlength="10"></html:text> </td>
      </tr>
      <tr>
        <td align="right"> <bean:message
key="fieldLabel.payout_rep_id"/> </td>
<td> <html:text property="payout_rep_id" size="10" maxlength="10"></html:text> </td> <td align="right"> <bean:message
key="fieldLabel.payout_rep_branch_id"/> </td>
        <td>   <html:text
property="payout_rep_branch_id"  size="2"
maxlength="2"></html:text> </td> </tr>
      <tr>
        <td align="right"> <bean:message
key="fieldLabel.sender_id"/> </td>
        <td>   <html:text
onfocus="document.forms[0].sender_id_type.focus();
popUpView(
'http://localhost/moneyTrans/pages/jsp/reports/sendersLOV.jsp',
550, 550 );" property="sender_id"  size="28"
maxlength="30" disabled="true"></html:text> </td>
        <td align="right"> <bean:message
key="fieldLabel.sender_fname"/> </td>
<td> <html:text property="sender_fname" size="20" maxlength="20"></html:text> </td>

        <td align="right"> <bean:message
key="fieldLabel.sender_lname"/> </td>
<td> <html:text property="sender_lname" size="20" maxlength="20"></html:text> </td>
      </tr>
<tr> <td align="right"><bean:message
key="fieldLabel.sender_id_type"/></td>
                  <td ><html:select size="1"
property="sender_id_type">
                  <html:options
collection="idTypesList" property="value"
labelProperty="label"/>
          </td></html:select>


        <td align="right" width="150"> <bean:message
key="fieldLabel.comm_amount"/> </td>
<td> <html:text property="comm_amount" size="12" maxlength="22" disabled="true"></html:text>
</td>
</tr> <tr> <td align="right"><bean:message
key="fieldLabel.status"/></td>
                  <td ><html:select size="1" property="status">
                  <html:options
collection="statusTypesList" property="value"
labelProperty="label"/>
          </td></html:select>
      </tr>
      <tr>
        <td align="right"> <bean:message
key="fieldLabel.bene_id"/> </td>
<td> <html:text property="bene_id" size="22" maxlength="22"></html:text> </td> <td align="right"> <bean:message
key="fieldLabel.bene_fname"/> </td>
<td> <html:text property="bene_fname" size="20" maxlength="20"></html:text> </td>

        <td align="right"> <bean:message
key="fieldLabel.bene_lname"/> </td>
<td> <html:text property="bene_lname" size="20" maxlength="20"></html:text> </td> <td align="right"> <bean:message
key="fieldLabel.bene_id_type"/> </td>
        <td>   <html:text
onblur="gotoSave(document.forms[0])"
property="bene_id_type"  size="25"
maxlength="25"></html:text> </td>
      </tr>
      <tr>
        <td align="right"> <bean:message
key="fieldLabel.paidout_by"/> </td>
<td> <html:text property="paidout_by" size="20" maxlength="20"></html:text> </td>

        <td align="right"> <bean:message
key="fieldLabel.paidout_on"/> </td>
<td> <html:text property="paidout_on" size="20" maxlength="20"></html:text> </td> <td align="right"> <bean:message
key="fieldLabel.updated_by"/> </td>
<td> <html:text property="updated_by" size="20" maxlength="20"></html:text> </td>
      </tr>
      <tr>
        <td align="right"> <bean:message
key="fieldLabel.updated_on"/> </td>
<td> <html:text property="updated_on" size="20" maxlength="20"></html:text> </td> <td align="right"> <bean:message
key="fieldLabel.cancelled_by"/> </td>
<td> <html:text property="cancelled_by" size="20" maxlength="20"></html:text> </td>

        <td align="right"> <bean:message
key="fieldLabel.cancelled_on"/> </td>
<td> <html:text property="cancelled_on" size="20" maxlength="20"></html:text> </td>
      </tr>
<tr> </tr>
      <tr>
      </tr>
<tr> </tr>
    </table>
    <BR>
      <html:submit accesskey="s"
onclick="set('SaveTransfer.do');"
property="save">Save</html:submit>
          <html:submit onclick=" return
prepareToInsertTransfer('Transfer', '.do'); ">Register
Transfer</html:submit>
      <html:button property="queryMode" onclick="
return prepareToQuery(document.forms[0]);">Query
Mode</html:button>
      <html:submit onclick="return
getEntity('GetTransfers.do');">Get
Transfer</html:submit>
          <html:submit onclick="set('DelTransfer.do')">Delete
Transfer</html:submit>
  </html:form>
<!-- Database items -->
    <html:hidden property="comm_payable"/>
    <html:hidden property="payout_rep_id"/>
    <html:hidden property="payout_branch_id"/>
<!-- None database items referenced in PL/SQL -->
    <html:hidden property="prev_status"/>
<!-- Initialised fields i.e. value=sth, do not
have to have bean methods... -->
    <html:hidden property="backedUpData" value=""/>
    <html:hidden property="username"
name="logonForm"/>
    <html:hidden property="userRole"
name="logonForm"/>



    <!-- None database items referenced in form -->
    <html:hidden property="temp" value=""/>
<logic:present scope="request"
name="enableFields">
           <SCRIPT language="JavaScript"
type="text/javascript"> <!--
              initTransfer();
// --> </SCRIPT>
        </logic:present>
<logic:present name="disableSaveButton">
         <SCRIPT language="JavaScript">
            document.forms[0].save.disabled = true;
         </SCRIPT>
     </logic:present>
<SCRIPT language="JavaScript" type="text/javascript"> <!--
           document.forms[0].temp.value = "";
// --> </SCRIPT> <logic:iterate id="exchangeRate"
name="exchangeRates">
           <SCRIPT language="JavaScript"
type="text/javascript"> <!--
              document.forms[0].temp.value += "|";
              document.forms[0].temp.value +=
"<bean:write name="exchangeRate"
property="from_country"/>";
              document.forms[0].temp.value +=
"<bean:write name="exchangeRate"
property="to_country"/>";
              document.forms[0].temp.value += "|";
              document.forms[0].temp.value +=
"<bean:write name="exchangeRate"
property="exchange_rate"/>";
//alert(document.forms[0].temp.value); // --> </SCRIPT>
                </logic:iterate>
                
        <SCRIPT language="JavaScript"
type="text/javascript"> <!-- setExchangeRates(document.forms[0].temp.value); // --> </SCRIPT>





GENERATED HTML CODE
===================
<html>

  <head>
    <title>Fujimitsu Ltd.</title>
<table width="500" border="0">
        <tr>
          <td width="37"> <a
href="/moneyTrans/Logoff.do">Sign&nbsp;out</a> </td>
          <td width="68"> <a
href="/moneyTrans/MoneyTransMenu.do">Menu</a> </td>
          <td width="68">OLACS</td>
        </tr>
      </table>
<SCRIPT language="JavaScript"
type="text/javascript"
src="/moneyTrans/pages/javaScript/fujimitsu.js"></SCRIPT>
<link
href="/moneyTrans/pages/styleSheets/fujimitsu.css"
rel="stylesheet" type="text/css">


<TR>
<TD class="error" colspan="3">
   <UL>
</UL>
</TD>
</TR>


<TR>
<TD class="message" colspan="3">
   <UL>
</UL>
</TD>
</TR>




    <SCRIPT language="JavaScript"
type="text/javascript"
src="/moneyTrans/pages/javaScript/transaction.js"></SCRIPT>
</head>
    <body>
  <form name="transferForm" method="post"
action="/moneyTrans/TransferView.do" onsubmit="return
validateTidyUpTransfer('Transfer', '.do');"><input
type="hidden"
name="org.apache.struts.taglib.html.TOKEN"
value="e0cb6508c6cd05ee436770db8dd859a8">
    <table width="85%" border="0" cellspacing="0">
      <tr>
        <td align="right">Transfer&nbsp;Id</td>
        <td> <input type="text" name="transfer_id"
size="12" value="" disabled="disabled"></td>

        <td align="right"> Created&nbsp;By </td>
        <td>   <input type="text" name="created_by"
maxlength="20" size="20" value=""> </td>
<td align="right" width="150">
Transferred&nbsp;On </td>
        <td>   <input type="text" name="created_on"
value="" disabled="disabled">     </td>
      </tr>
      <tr>
        <td align="right"> Collecting&nbsp;Rep&nbsp;Id
</td>
        <td>   <input type="text"
name="collectn_rep_id" maxlength="20" size="10"
value="" onfocus="goToRepIdsNextItem(); popUpViewIfCS(
'http://localhost/moneyTrans/pages/jsp/reports/repsLOV.jsp',
550, 550, document.forms[0].userRole.value);"
disabled="disabled"> </td>


        <td align="right">
Collecting&nbsp;Rep&nbsp;Branch&nbsp;Id </td>
        <td>   <input type="text"
name="collectn_rep_branch_id" maxlength="2" size="2"
value=""> </td>
<td align="right"> Rep&nbsp;Emp </td>
                <td ><select name="rep_emp" size="1"><option
value="ukfujimits">2</option>
<option value="" selected="selected"></option>

        </td></select>

      </tr>
      <tr>

          <td align="right">From&nbsp;Country</td>
                  <td ><select name="from_country" size="1"><option
value="ngr">nigeria</option>
<option value="uk">united k</option>
<option value="" selected="selected"></option>

          </td></select>

          <td align="right">To&nbsp;Country</td>
                  <td ><select name="to_country" size="1"><option
value="ngr">nigeria</option>
<option value="uk">united k</option>
<option value="" selected="selected"></option>

          </td></select>
<td align="right">From&nbsp;Currency</td>
                  <td ><select name="from_currency" size="1"><option
value="GBP">GBP</option>
<option value="NAIRA">NAIRA</option>
<option value="Yen">Yen</option>
<option value="" selected="selected"></option>

          </td></select>
      </tr>
      <tr>

          <td align="right">To&nbsp;Currency</td>
                  <td ><select name="to_currency" size="1"><option
value="GBP">GBP</option>
<option value="NAIRA">NAIRA</option>
<option value="Yen">Yen</option>
<option value="" selected="selected"></option>

          </td></select>
<td align="right"> Exchange&nbsp;Rate </td>
        <td>   <input type="text" name="exchange_rate"
value=""
onchange="document.forms[0].exchange_rate.value =
getExchangeRates(document.forms[0].from_country.value
+ document.forms[0].to_country.value);"> </td>
        <td align="right" width="150">
Sent&nbsp;Amount </td>
        <td>   <input type="text" name="sent_amount"
value="" disabled="disabled"> </td> </tr>
      <tr>
        <td align="right" width="150">
Sent&nbsp;Amount Confirmation </td>
        <td>   <input type="text"
name="sent_amount_confirmation" maxlength="17"
size="12" value="" onblur="validatePr_amount()"> </td>
          <td
align="right">Bene&nbsp;Id&nbsp;Type</td>
                  <td ><select name="bene_id_type" size="1"><option
value="passport">passport</option>
<option value="" selected="selected"></option>

          </td></select>

        <td align="right"> Exchange&nbsp;Rate </td>
        <td>   <input type="text" name="exchange_rate"
maxlength="22" size="12" value="" disabled="disabled">
</td>
<td align="right"> Payable&nbsp;Amount </td>
        <td>   <input type="text"
name="payable_amount" maxlength="22" size="22"
value=""> </td>
      </tr>
      <tr>
        <td align="right"> Bene&nbsp;Question </td>
        <td>   <input type="text" name="bene_question"
maxlength="40" size="28" value=""> </td>

        <td align="right" width="150">
Bene&nbsp;Answer </td>
        <td>   <input type="text" name="bene_answer"
maxlength="40" size="28" value=""
onblur="document.forms[0].payout_addr.focus()"> </td>
</tr>
      <tr>

        <td align="right"> Payout&nbsp;Code </td>
        <td>   <input type="text" name="payout_code"
maxlength="20" size="20" value="" disabled="disabled">
</td>


        <td align="right"> Payout&nbsp;Amount </td>
        <td>   <input type="text" name="payout_amount"
maxlength="22" size="22" value=""> </td>
</tr> <tr>
        <td align="right" width="150">
Payout&nbsp;Addr </td>
        <td><textarea name="payout_addr" rows="4"
onfocus="popUpView(
'http://localhost/moneyTrans/pages/jsp/reports/payOutPointsLOV.jsp',
550, 550 );" disabled="disabled"></textarea></td>

        <td align="right"> Payout&nbsp;City </td>
        <td>   <input type="text" name="payout_city"
maxlength="30" size="30" value=""> </td>
<td align="right"> Payout&nbsp;Addr&nbsp;Code
</td>
        <td>   <input type="text"
name="payout_addr_code" maxlength="10" size="10"
value=""> </td>
      </tr>
      <tr>
        <td align="right"> Payout&nbsp;Rep&nbsp;Id
</td>
        <td>   <input type="text" name="payout_rep_id"
maxlength="10" size="10" value=""> </td>
<td align="right"> Payout&nbsp;Rep
Branch&nbsp;Id </td>
        <td>   <input type="text"
name="payout_rep_branch_id" maxlength="2" size="2"
value=""> </td> </tr>
      <tr>
        <td align="right"> Sender&nbsp;Id </td>
        <td>   <input type="text" name="sender_id"
maxlength="30" size="28" value=""
onfocus="document.forms[0].sender_id_type.focus();
popUpView(
'http://localhost/moneyTrans/pages/jsp/reports/sendersLOV.jsp',
550, 550 );" disabled="disabled"> </td>
        <td align="right"> Sender&nbsp;Fname </td>
        <td>   <input type="text" name="sender_fname"
maxlength="20" size="20" value=""> </td>

        <td align="right"> Sender&nbsp;Lname </td>
        <td>   <input type="text" name="sender_lname"
maxlength="20" size="20" value=""> </td>
      </tr>
<tr> <td
align="right">Sender&nbsp;Id&nbsp;Type</td>
                  <td ><select name="sender_id_type"
size="1"><option value="passport">passport</option>
<option value="" selected="selected"></option>

          </td></select>


        <td align="right" width="150">
Comm&nbsp;Percent </td>
        <td>   <input type="text" name="comm_amount"
maxlength="22" size="12" value="" disabled="disabled">
</td>
</tr> <tr> <td align="right">Status</td>
                  <td ><select name="status" size="1"><option
value="A">ACTIVE</option>
<option value="I">INACTIVE</option>
<option value="S">SUSPENDED</option>
<option value="" selected="selected"></option>

          </td></select>
      </tr>
      <tr>
        <td align="right"> Bene&nbsp;Id </td>
        <td>   <input type="text" name="bene_id"
maxlength="22" size="22" value=""> </td>
<td align="right"> Bene&nbsp;Fname </td>
        <td>   <input type="text" name="bene_fname"
maxlength="20" size="20" value=""> </td>

        <td align="right"> Bene&nbsp;Lname </td>
        <td>   <input type="text" name="bene_lname"
maxlength="20" size="20" value=""> </td>
<td align="right"> Bene&nbsp;Id&nbsp;Type
</td>
        <td>   <input type="text" name="bene_id_type"
maxlength="25" size="25" value=""
onblur="gotoSave(document.forms[0])"> </td>
      </tr>
      <tr>
        <td align="right"> Paidout&nbsp;By </td>
        <td>   <input type="text" name="paidout_by"
maxlength="20" size="20" value=""> </td>

        <td align="right"> Paidout&nbsp;On </td>
        <td>   <input type="text" name="paidout_on"
maxlength="20" size="20" va
--- Martin Gainty <[EMAIL PROTECTED]> wrote:


Ok-

I would have to see the entire JSP before offering
any suggestion

Greets,

Martin Gainty

______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments
relating to the official business of Sender and is proprietary to Sender. It is confidential, legally privileged and protected by law. Sender does not own and endorse any other content.
(mobile) 617-852-7822





From: "O. Oke" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"

<user@struts.apache.org>

To: user@struts.apache.org
Subject: HTML file generated by JSP is

truncated...why?...Please help!...

Date: Sat, 18 Jun 2005 13:25:39 +0100 (BST)
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199])

by MC6-F18.hotmail.com
with Microsoft SMTPSVC(6.0.3790.211); Sat, 18 Jun

2005 05:26:24 -0700

Received: (qmail 23071 invoked by uid 500); 18 Jun

2005 12:26:12 -0000

Received: (qmail 23057 invoked by uid 99); 18 Jun

2005 12:26:12 -0000

Received: pass (hermes.apache.org: local policy

includes SPF record at
spf.trusted-forwarder.org)
Received: from web25006.mail.ukl.yahoo.com (HELO web25006.mail.ukl.yahoo.com) (217.12.10.42) by

apache.org (qpsmtpd/0.29)
with SMTP; Sat, 18 Jun 2005 05:26:12 -0700
Received: (qmail 78194 invoked by uid 60001); 18

Jun 2005 12:25:39 -0000

Received: from [82.35.89.58] by

web25006.mail.ukl.yahoo.com via HTTP; Sat,
18 Jun 2005 13:25:39 BST
X-Message-Info:

JGTYoYF78jEmeac2VvBIOHAUeeGsj7Q/Fx+wEf59vlg=

Mailing-List: contact [EMAIL PROTECTED];

run by ezmlm

Precedence: bulk
List-Unsubscribe:

<mailto:[EMAIL PROTECTED]>

List-Help: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:user@struts.apache.org>
List-Id: "Struts Users Mailing List"

<user.struts.apache.org>

Delivered-To: mailing list user@struts.apache.org
X-ASF-Spam-Status: No, hits=0.9

required=10.0tests=PLING_QUERY

X-Spam-Check-By: apache.org
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;

s=s1024; d=yahoo.co.uk;
h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding;




b=xjXUHYt402pR5IM+UWOMUH6+r/eyndQh0le98KQXW0m7urwROiN9D2qGq39Kh4vhuRYpWuH7yzsvZdywx12N8UiPIN7ZzG2wQ8uXnQTvHliWX/LYg8756SWxqPzDDuZkg28JyimnrBztiyiJuLxpol3TEDENRR1ibb95yZgB8Ak=


;
Return-Path:

[EMAIL PROTECTED]

X-OriginalArrivalTime: 18 Jun 2005 12:26:24.0950

(UTC)
FILETIME=[F1718D60:01C57400]

Please help!...


BACKGROUND
==========
I am using Tomcat-5.0.27 on Windows 2000.  I use
Eclipse IDEfor dev.

Furthermore, I have a JSP form that has about 50
fields; when the JSP is converted to an HTML file

by

Tomcat, the last 7 fields do not appear in the
generated HTML document.  When I viewed the source
code of the HTML  doc, I noticed that it had been
truncated.  Below are the last few lines of code in
the HTML doc generated:
...........
        <tr>
       <td align="right"> Updated&nbsp;By </td>
       <td>   <input type="text"

name="updated_by"

maxlength="20" size="20" value=""> </td>

     </tr>
     <tr>
       <td align="right"> Updated&nbsp;On </td>
       <td>   <input type="text"

As you would have noted, the code for last field

ended

halfway.  No matter what the last 7 fields are,

they

are truncated.

My impression is that something is exceeding a

lmit,

thus is automatically truncated.

Please enlighten me.

Thank you.

Dele Oke





___________________________________________________________

How much free photo storage do you get? Store your

holiday

snaps for FREE with Yahoo! Photos

http://uk.photos.yahoo.com

---------------------------------------------------------------------

To unsubscribe, e-mail:

[EMAIL PROTECTED]

For additional commands, e-mail:

[EMAIL PROTECTED]




---------------------------------------------------------------------

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






                
___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com


------------------------------------------------------------------------

Thank you all.

Please note that it appears to be a maximum number of
xters problem; I am saying this because when I deleted
some blank lines from my JSP source, more HTML code
was  generated.  The problem is that I do not know
where this size is set.

Nevertheless, the source code are as follows:

JSP
===
<%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<SCRIPT language="JavaScript" type="text/javascript" src="<html:rewrite page="/pages/javaScript/transaction.js"/>"></SCRIPT> </head>
    <body>
  <html:form action="/TransferView.do" onsubmit="return 
validateTidyUpTransfer('Transfer', '.do');">
    <table width="85%" border="0" cellspacing="0">
      <tr>
        <td align="right"><bean:message key="fieldLabel.transfer_id"/></td>
        <td> <html:text property="transfer_id" size="12" disabled="true"> 
</html:text></td>

        <td align="right"> <bean:message key="fieldLabel.created_by"/> </td>
        <td>   <html:text property="created_by"  size="20" 
maxlength="20"></html:text> </td>
<td align="right" width="150"> <bean:message key="fieldLabel.transferred_on"/> </td>
        <td>   <html:text property="created_on" disabled="true"></html:text>     
</td>
      </tr>
      <tr>
        <td align="right"> <bean:message key="fieldLabel.collectn_rep_id"/> 
</td>
        <td>   <html:text onfocus="goToRepIdsNextItem(); popUpViewIfCS( 'http://localhost/moneyTrans/pages/jsp/reports/repsLOV.jsp', 550, 
550, document.forms[0].userRole.value);" property="collectn_rep_id"  size="10" maxlength="20" 
disabled="true"></html:text> </td>


        <td align="right"> <bean:message key="fieldLabel.collectn_rep_branch_id"/> 
</td>
        <td>   <html:text property="collectn_rep_branch_id"  size="2" 
maxlength="2"></html:text> </td>
<td align="right"> <bean:message key="fieldLabel.rep_emp"/> </td>
                <td ><html:select size="1" property="rep_emp">
                <html:options collection="repEmpsList" property="value" 
labelProperty="label"/>
        </td></html:select>

      </tr>
      <tr>

          <td align="right"><bean:message key="fieldLabel.from_country"/></td>
                  <td ><html:select size="1" property="from_country">
                  <html:options collection="countriesList" property="value" 
labelProperty="label"/>
          </td></html:select>

          <td align="right"><bean:message key="fieldLabel.to_country"/></td>
                  <td ><html:select size="1" property="to_country">
                  <html:options collection="countriesList" property="value" 
labelProperty="label"/>
          </td></html:select>
<td align="right"><bean:message key="fieldLabel.from_currency"/></td>
                  <td ><html:select size="1" property="from_currency">
                  <html:options collection="currenciesList" property="value" 
labelProperty="value"/>
          </td></html:select>
      </tr>
      <tr>

          <td align="right"><bean:message key="fieldLabel.to_currency"/></td>
                  <td ><html:select size="1" property="to_currency">
                  <html:options collection="currenciesList" property="value" 
labelProperty="value"/>
          </td></html:select>
<td align="right"> <bean:message key="fieldLabel.exchange_rate"/> </td>
        <td>   <html:text property="exchange_rate"  onchange="document.forms[0].exchange_rate.value 
= getExchangeRates(document.forms[0].from_country.value + document.forms[0].to_country.value);"></html:text> 
</td>
        <td align="right" width="150"> <bean:message key="fieldLabel.sent_amount"/> 
</td>
<td> <html:text property="sent_amount" disabled="true"></html:text> </td> </tr>
      <tr>
        <td align="right" width="150"> <bean:message 
key="fieldLabel.sent_amount_confirmation"/> </td>
        <td>   <html:text property="sent_amount_confirmation"  size="12" maxlength="17" 
onblur="validatePr_amount()"></html:text> </td>
          <td align="right"><bean:message key="fieldLabel.bene_id_type"/></td>
                  <td ><html:select size="1" property="bene_id_type">
                  <html:options collection="idTypesList" property="value" 
labelProperty="label"/>
          </td></html:select>

        <td align="right"> <bean:message key="fieldLabel.exchange_rate"/> </td>
        <td>   <html:text property="exchange_rate"  size="12" maxlength="22" 
disabled="true"></html:text> </td>
<td align="right"> <bean:message key="fieldLabel.payable_amount"/> </td>
        <td>   <html:text property="payable_amount"  size="22" 
maxlength="22"></html:text> </td>
      </tr>
      <tr>
        <td align="right"> <bean:message key="fieldLabel.bene_question"/> </td>
        <td>   <html:text property="bene_question"  size="28" 
maxlength="40"></html:text> </td>

        <td align="right" width="150"> <bean:message key="fieldLabel.bene_answer"/> 
</td>
        <td>   <html:text onblur="document.forms[0].payout_addr.focus()" property="bene_answer"  
size="28" maxlength="40"></html:text> </td>
</tr>
      <tr>

        <td align="right"> <bean:message key="fieldLabel.payout_code"/> </td>
        <td>   <html:text property="payout_code"  size="20" maxlength="20" 
disabled="true"></html:text> </td>


        <td align="right"> <bean:message key="fieldLabel.payout_amount"/> </td>
        <td>   <html:text property="payout_amount"  size="22" 
maxlength="22"></html:text> </td>
</tr> <tr>
        <td align="right" width="150"> <bean:message key="fieldLabel.payout_addr"/> 
</td>
        <td><html:textarea property="payout_addr" rows="4"  disabled="true" 
onfocus="popUpView( 'http://localhost/moneyTrans/pages/jsp/reports/payOutPointsLOV.jsp', 550, 550 );"/></td>

        <td align="right"> <bean:message key="fieldLabel.payout_city"/> </td>
        <td>   <html:text property="payout_city"  size="30" 
maxlength="30"></html:text> </td>
<td align="right"> <bean:message key="fieldLabel.payout_addr_code"/> </td>
        <td>   <html:text property="payout_addr_code"  size="10" 
maxlength="10"></html:text> </td>
      </tr>
      <tr>
        <td align="right"> <bean:message key="fieldLabel.payout_rep_id"/> </td>
        <td>   <html:text property="payout_rep_id"  size="10" 
maxlength="10"></html:text> </td>
<td align="right"> <bean:message key="fieldLabel.payout_rep_branch_id"/> </td> <td> <html:text property="payout_rep_branch_id" size="2" maxlength="2"></html:text> </td> </tr>
      <tr>
        <td align="right"> <bean:message key="fieldLabel.sender_id"/> </td>
        <td>   <html:text onfocus="document.forms[0].sender_id_type.focus(); popUpView( 
'http://localhost/moneyTrans/pages/jsp/reports/sendersLOV.jsp', 550, 550 );" property="sender_id"  size="28" 
maxlength="30" disabled="true"></html:text> </td>
        <td align="right"> <bean:message key="fieldLabel.sender_fname"/> </td>
        <td>   <html:text property="sender_fname"  size="20" 
maxlength="20"></html:text> </td>

        <td align="right"> <bean:message key="fieldLabel.sender_lname"/> </td>
        <td>   <html:text property="sender_lname"  size="20" 
maxlength="20"></html:text> </td>
      </tr>
<tr> <td align="right"><bean:message key="fieldLabel.sender_id_type"/></td>
                  <td ><html:select size="1" property="sender_id_type">
                  <html:options collection="idTypesList" property="value" 
labelProperty="label"/>
          </td></html:select>


        <td align="right" width="150"> <bean:message key="fieldLabel.comm_amount"/> 
</td>
        <td>   <html:text property="comm_amount"  size="12" maxlength="22" 
disabled="true"></html:text> </td>
</tr> <tr> <td align="right"><bean:message key="fieldLabel.status"/></td>
                  <td ><html:select size="1" property="status">
                  <html:options collection="statusTypesList" property="value" 
labelProperty="label"/>
          </td></html:select>
      </tr>
      <tr>
        <td align="right"> <bean:message key="fieldLabel.bene_id"/> </td>
        <td>   <html:text property="bene_id"  size="22" maxlength="22"></html:text> 
</td>
<td align="right"> <bean:message key="fieldLabel.bene_fname"/> </td>
        <td>   <html:text property="bene_fname"  size="20" 
maxlength="20"></html:text> </td>

        <td align="right"> <bean:message key="fieldLabel.bene_lname"/> </td>
        <td>   <html:text property="bene_lname"  size="20" 
maxlength="20"></html:text> </td>
<td align="right"> <bean:message key="fieldLabel.bene_id_type"/> </td>
        <td>   <html:text onblur="gotoSave(document.forms[0])" property="bene_id_type"  size="25" 
maxlength="25"></html:text> </td>
      </tr>
      <tr>
        <td align="right"> <bean:message key="fieldLabel.paidout_by"/> </td>
        <td>   <html:text property="paidout_by"  size="20" 
maxlength="20"></html:text> </td>

        <td align="right"> <bean:message key="fieldLabel.paidout_on"/> </td>
        <td>   <html:text property="paidout_on"  size="20" 
maxlength="20"></html:text> </td>
<td align="right"> <bean:message key="fieldLabel.updated_by"/> </td>
        <td>   <html:text property="updated_by"  size="20" 
maxlength="20"></html:text> </td>
      </tr>
      <tr>
        <td align="right"> <bean:message key="fieldLabel.updated_on"/> </td>
        <td>   <html:text property="updated_on"  size="20" 
maxlength="20"></html:text> </td>
<td align="right"> <bean:message key="fieldLabel.cancelled_by"/> </td>
        <td>   <html:text property="cancelled_by"  size="20" 
maxlength="20"></html:text> </td>

        <td align="right"> <bean:message key="fieldLabel.cancelled_on"/> </td>
        <td>   <html:text property="cancelled_on"  size="20" 
maxlength="20"></html:text> </td>
      </tr>
<tr> </tr>
      <tr>
      </tr>
<tr> </tr>
    </table>
    <BR>
      <html:submit accesskey="s" onclick="set('SaveTransfer.do');" 
property="save">Save</html:submit>
          <html:submit onclick=" return prepareToInsertTransfer('Transfer', '.do'); 
">Register Transfer</html:submit>
      <html:button property="queryMode" onclick=" return 
prepareToQuery(document.forms[0]);">Query Mode</html:button>
      <html:submit onclick="return getEntity('GetTransfers.do');">Get 
Transfer</html:submit>
          <html:submit onclick="set('DelTransfer.do')">Delete 
Transfer</html:submit>
  </html:form>
<!-- Database items -->
    <html:hidden property="comm_payable"/>
    <html:hidden property="payout_rep_id"/>
    <html:hidden property="payout_branch_id"/>
<!-- None database items referenced in PL/SQL -->
    <html:hidden property="prev_status"/>
<!-- Initialised fields i.e. value=sth, do not have to have bean methods... -->
    <html:hidden property="backedUpData" value=""/>
    <html:hidden property="username" name="logonForm"/>
    <html:hidden property="userRole" name="logonForm"/>



    <!-- None database items referenced in form -->
    <html:hidden property="temp" value=""/>
<logic:present scope="request" name="enableFields"> <SCRIPT language="JavaScript" type="text/javascript"> <!--
              initTransfer();
// --> </SCRIPT>
        </logic:present>
<logic:present name="disableSaveButton">
         <SCRIPT language="JavaScript">
            document.forms[0].save.disabled = true;
         </SCRIPT>
     </logic:present>
<SCRIPT language="JavaScript" type="text/javascript"> <!--
           document.forms[0].temp.value = "";
// --> </SCRIPT> <logic:iterate id="exchangeRate" name="exchangeRates"> <SCRIPT language="JavaScript" type="text/javascript"> <!--
              document.forms[0].temp.value += "|";
              document.forms[0].temp.value += "<bean:write name="exchangeRate" 
property="from_country"/>";
              document.forms[0].temp.value += "<bean:write name="exchangeRate" 
property="to_country"/>";
              document.forms[0].temp.value += "|";
              document.forms[0].temp.value += "<bean:write name="exchangeRate" 
property="exchange_rate"/>";
//alert(document.forms[0].temp.value); // --> </SCRIPT>
                </logic:iterate>
                
<SCRIPT language="JavaScript" type="text/javascript"> <!--
           setExchangeRates(document.forms[0].temp.value);
// --> </SCRIPT>








GENERATED HTML CODE
===================
<html>

  <head>
    <title>Fujimitsu Ltd.</title>
<table width="500" border="0">
        <tr>
          <td width="37"> <a href="/moneyTrans/Logoff.do">Sign&nbsp;out</a> 
</td>
          <td width="68"> <a href="/moneyTrans/MoneyTransMenu.do">Menu</a> </td>
          <td width="68">OLACS</td>
        </tr>
      </table>
<SCRIPT language="JavaScript" type="text/javascript" src="/moneyTrans/pages/javaScript/fujimitsu.js"></SCRIPT> <link href="/moneyTrans/pages/styleSheets/fujimitsu.css" rel="stylesheet" type="text/css">


<TR>
<TD class="error" colspan="3">
   <UL>
</UL>
</TD>
</TR>


<TR>
<TD class="message" colspan="3">
   <UL>
</UL>
</TD>
</TR>




<SCRIPT language="JavaScript" type="text/javascript" src="/moneyTrans/pages/javaScript/transaction.js"></SCRIPT> </head>
    <body>
  <form name="transferForm" method="post" action="/moneyTrans/TransferView.do" onsubmit="return 
validateTidyUpTransfer('Transfer', '.do');"><input type="hidden" name="org.apache.struts.taglib.html.TOKEN" 
value="e0cb6508c6cd05ee436770db8dd859a8">
    <table width="85%" border="0" cellspacing="0">
      <tr>
        <td align="right">Transfer&nbsp;Id</td>
        <td> <input type="text" name="transfer_id" size="12" value="" 
disabled="disabled"></td>

        <td align="right"> Created&nbsp;By </td>
        <td>   <input type="text" name="created_by" maxlength="20" size="20" 
value=""> </td>
<td align="right" width="150"> Transferred&nbsp;On </td>
        <td>   <input type="text" name="created_on" value="" disabled="disabled">     
</td>
      </tr>
      <tr>
        <td align="right"> Collecting&nbsp;Rep&nbsp;Id </td>
        <td>   <input type="text" name="collectn_rep_id" maxlength="20" size="10" value="" 
onfocus="goToRepIdsNextItem(); popUpViewIfCS( 'http://localhost/moneyTrans/pages/jsp/reports/repsLOV.jsp', 550, 550, document.forms[0].userRole.value);" 
disabled="disabled"> </td>


        <td align="right"> Collecting&nbsp;Rep&nbsp;Branch&nbsp;Id </td>
        <td>   <input type="text" name="collectn_rep_branch_id" maxlength="2" size="2" 
value=""> </td>
<td align="right"> Rep&nbsp;Emp </td>
                <td ><select name="rep_emp" size="1"><option 
value="ukfujimits">2</option>
<option value="" selected="selected"></option>

        </td></select>

      </tr>
      <tr>

          <td align="right">From&nbsp;Country</td>
                  <td ><select name="from_country" size="1"><option 
value="ngr">nigeria</option>
<option value="uk">united k</option>
<option value="" selected="selected"></option>

          </td></select>

          <td align="right">To&nbsp;Country</td>
                  <td ><select name="to_country" size="1"><option 
value="ngr">nigeria</option>
<option value="uk">united k</option>
<option value="" selected="selected"></option>

          </td></select>
<td align="right">From&nbsp;Currency</td>
                  <td ><select name="from_currency" size="1"><option 
value="GBP">GBP</option>
<option value="NAIRA">NAIRA</option>
<option value="Yen">Yen</option>
<option value="" selected="selected"></option>

          </td></select>
      </tr>
      <tr>

          <td align="right">To&nbsp;Currency</td>
                  <td ><select name="to_currency" size="1"><option 
value="GBP">GBP</option>
<option value="NAIRA">NAIRA</option>
<option value="Yen">Yen</option>
<option value="" selected="selected"></option>

          </td></select>
<td align="right"> Exchange&nbsp;Rate </td>
        <td>   <input type="text" name="exchange_rate" value="" 
onchange="document.forms[0].exchange_rate.value = getExchangeRates(document.forms[0].from_country.value + 
document.forms[0].to_country.value);"> </td>
        <td align="right" width="150"> Sent&nbsp;Amount </td>
<td> <input type="text" name="sent_amount" value="" disabled="disabled"> </td> </tr>
      <tr>
        <td align="right" width="150"> Sent&nbsp;Amount Confirmation </td>
        <td>   <input type="text" name="sent_amount_confirmation" maxlength="17" size="12" 
value="" onblur="validatePr_amount()"> </td>
          <td align="right">Bene&nbsp;Id&nbsp;Type</td>
                  <td ><select name="bene_id_type" size="1"><option 
value="passport">passport</option>
<option value="" selected="selected"></option>

          </td></select>

        <td align="right"> Exchange&nbsp;Rate </td>
        <td>   <input type="text" name="exchange_rate" maxlength="22" size="12" value="" 
disabled="disabled"> </td>
<td align="right"> Payable&nbsp;Amount </td>
        <td>   <input type="text" name="payable_amount" maxlength="22" size="22" 
value=""> </td>
      </tr>
      <tr>
        <td align="right"> Bene&nbsp;Question </td>
        <td>   <input type="text" name="bene_question" maxlength="40" size="28" 
value=""> </td>

        <td align="right" width="150"> Bene&nbsp;Answer </td>
        <td>   <input type="text" name="bene_answer" maxlength="40" size="28" value="" 
onblur="document.forms[0].payout_addr.focus()"> </td>
</tr>
      <tr>

        <td align="right"> Payout&nbsp;Code </td>
        <td>   <input type="text" name="payout_code" maxlength="20" size="20" value="" 
disabled="disabled"> </td>


        <td align="right"> Payout&nbsp;Amount </td>
        <td>   <input type="text" name="payout_amount" maxlength="22" size="22" 
value=""> </td>
</tr> <tr>
        <td align="right" width="150"> Payout&nbsp;Addr </td>
        <td><textarea name="payout_addr" rows="4" onfocus="popUpView( 
'http://localhost/moneyTrans/pages/jsp/reports/payOutPointsLOV.jsp', 550, 550 );" 
disabled="disabled"></textarea></td>

        <td align="right"> Payout&nbsp;City </td>
        <td>   <input type="text" name="payout_city" maxlength="30" size="30" 
value=""> </td>
<td align="right"> Payout&nbsp;Addr&nbsp;Code </td>
        <td>   <input type="text" name="payout_addr_code" maxlength="10" size="10" 
value=""> </td>
      </tr>
      <tr>
        <td align="right"> Payout&nbsp;Rep&nbsp;Id </td>
        <td>   <input type="text" name="payout_rep_id" maxlength="10" size="10" 
value=""> </td>
<td align="right"> Payout&nbsp;Rep Branch&nbsp;Id </td> <td> <input type="text" name="payout_rep_branch_id" maxlength="2" size="2" value=""> </td> </tr>
      <tr>
        <td align="right"> Sender&nbsp;Id </td>
        <td>   <input type="text" name="sender_id" maxlength="30" size="28" value="" 
onfocus="document.forms[0].sender_id_type.focus(); popUpView( 'http://localhost/moneyTrans/pages/jsp/reports/sendersLOV.jsp', 550, 550 );" 
disabled="disabled"> </td>
        <td align="right"> Sender&nbsp;Fname </td>
        <td>   <input type="text" name="sender_fname" maxlength="20" size="20" 
value=""> </td>

        <td align="right"> Sender&nbsp;Lname </td>
        <td>   <input type="text" name="sender_lname" maxlength="20" size="20" 
value=""> </td>
      </tr>
<tr> <td align="right">Sender&nbsp;Id&nbsp;Type</td>
                  <td ><select name="sender_id_type" size="1"><option 
value="passport">passport</option>
<option value="" selected="selected"></option>

          </td></select>


        <td align="right" width="150"> Comm&nbsp;Percent </td>
        <td>   <input type="text" name="comm_amount" maxlength="22" size="12" value="" 
disabled="disabled"> </td>
</tr> <tr> <td align="right">Status</td>
                  <td ><select name="status" size="1"><option 
value="A">ACTIVE</option>
<option value="I">INACTIVE</option>
<option value="S">SUSPENDED</option>
<option value="" selected="selected"></option>

          </td></select>
      </tr>
      <tr>
        <td align="right"> Bene&nbsp;Id </td>
        <td>   <input type="text" name="bene_id" maxlength="22" size="22" value=""> 
</td>
<td align="right"> Bene&nbsp;Fname </td>
        <td>   <input type="text" name="bene_fname" maxlength="20" size="20" 
value=""> </td>

        <td align="right"> Bene&nbsp;Lname </td>
        <td>   <input type="text" name="bene_lname" maxlength="20" size="20" 
value=""> </td>
<td align="right"> Bene&nbsp;Id&nbsp;Type </td>
        <td>   <input type="text" name="bene_id_type" maxlength="25" size="25" value="" 
onblur="gotoSave(document.forms[0])"> </td>
      </tr>
      <tr>
        <td align="right"> Paidout&nbsp;By </td>
        <td>   <input type="text" name="paidout_by" maxlength="20" size="20" 
value=""> </td>

        <td align="right"> Paidout&nbsp;On </td>
        <td>   <input type="text" name="paidout_on" maxlength="20" size="20" va


------------------------------------------------------------------------

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


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

Reply via email to