Re: HTML file generated by JSP is truncated...why?...Please help!...source attached

2005-06-19 Thread O. Oke
Thank you very much.  I am already using Tiles, but I
will explore further,in line with your suggestion.

O'Dele Oke.





--- Laurie Harper <[EMAIL PROTECTED]> wrote:

> 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" %>
> > 
> >  > type="text/javascript" src=" >
> page="/pages/javaScript/transaction.js"/>">
>  
> >  
> >  
> > 
> >> onsubmit="return
> validateTidyUpTransfer('Transfer',
> > '.do');">
> > 
> >   
> >  > key="fieldLabel.transfer_id"/>
> >   > size="12" disabled="true"> 
> > 
> >   > key="fieldLabel.created_by"/> 
> > > size="20" maxlength="20"> 
> > 
> > 
>  > key="fieldLabel.transferred_on"/> 
> > > disabled="true"> 
> >   
> >   
> >   > key="fieldLabel.collectn_rep_id"/> 
> > > 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"> 
> > 
> > 
> >   > key="fieldLabel.collectn_rep_branch_id"/> 
> > > property="collectn_rep_branch_id"  size="2"
> > maxlength="2"> 
> > 
> >   > key="fieldLabel.rep_emp"/> 
> > 
> >  collection="repEmpsList"
> > property="value" labelProperty="label"/>
> > 
> > 
> >   
> >   
> > 
> >> key="fieldLabel.from_country"/>
> >> property="from_country">
> >> collection="countriesList" property="value"
> > labelProperty="label"/>
> >   
> > 
> >> key="fieldLabel.to_country"/>
> >property="to_country">
> >> collection="countriesList" property="value"
> > labelProperty="label"/>
> >   
> >   
> >   
> >> key="fieldLabel.from_currency"/>
> >> property="from_currency">
> >> collection="currenciesList" property="value"
> > labelProperty="value"/>
> >   
> >   
> >   
> > 
> >> key="fieldLabel.to_currency"/>
> >property="to_currency">
> >> collection="currenciesList" property="value"
> > labelProperty="value"/>
> >   
> >   
> >   
> >   > key="fieldLabel.exchange_rate"/> 
> > 
> > onchange="document.forms[0].exchange_rate.value =
> >
>
getExchangeRates(document.forms[0].from_country.value
> > +
> document.forms[0].to_country.value);">
> > 
> > 
> > 
> > 
>  > key="fieldLabel.sent_amount"/> 
> > > disabled="true"> 
> > 
> > 
> > 
> >   
> >   
> > 
>  > key="fieldLabel.sent_amount_confirmation"/> 
> > > property="sent_amount_confirmation"  size="12"
> > maxlength="17"
> > onblur="validatePr_amount()"> 
> > 
> > 
> > 
> >> key="fieldLabel.bene_id_type"/>
> >> property="bene_id_type">
> >> collection="idTypesList" property="value"
> > labelProperty="label"/>
> >   
> > 
> > 
> > 
> >   > key="fieldLabel.exchange_rate"/> 
> > 
> > size="12" maxlength="22"
> disabled="true">
> > 
> > 
> >   > key="fieldLabel.payable_amount"/> 
> > property="payable_amount" 
> > size="22" maxlength="22"> 
> >   
> >   
> >   > key="fieldLabel.bene_question"/> 
> > 
> > size="28" maxlength="40"> 
> > 
> > 
>  > key="fieldLabel.bene_answer"/> 
> > > onblur="document.forms[0].payout_addr.focus()"
> > property="bene_answer"  size="28"
> > maxlength="40"> 
> > 
> >   
> >   
> > 
>

Re: HTML file generated by JSP is truncated...why?...Please help!...source attached

2005-06-18 Thread Laurie Harper
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" %>

">  
 
	


  

  

  

  
   size="20" maxlength="20"> 

 
key="fieldLabel.transferred_on"/> 

  
  
  
   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"> 


  


 
key="fieldLabel.rep_emp"/> 




  
  

  
  
  
  

  
  
  
  
  
  
  
key="fieldLabel.from_currency"/>
  
  
  
  
  

  
  
  
  
  
  
 
key="fieldLabel.exchange_rate"/> 
   onchange="document.forms[0].exchange_rate.value =

getExchangeRates(document.forms[0].from_country.value
+ document.forms[0].to_country.value);">




  
   disabled="true"> 



  

  
  





  
  
  
  




  
   size="12" maxlength="22" disabled="true">



 
key="fieldLabel.payable_amount"/> 
   size="22" maxlength="22"> 

  
  
  
   size="28" maxlength="40"> 


  


  

  

  
   size="20" maxlength="20" disabled="true">




  
   size="22" maxlength="22"> 

  
 


  
http://localhost/moneyTrans/pages/jsp/reports/payOutPointsLOV.jsp',
550, 550 );"/>

  
   size="30" maxlength="30"> 

 
key="fieldLabel.payout_addr_code"/> 
   size="10" maxlength="10"> 

  
  
  
   size="10" maxlength="10"> 

 
key="fieldLabel.payout_rep_branch_id"/> 
   maxlength="2"> 
  

  
  
   http://localhost/moneyTrans/pages/jsp/reports/sendersLOV.jsp',
550, 550 );" property="sender_id"  size="28"
maxlength="30" disabled="true"> 
 


  
   size="20" maxlength="20"> 


  
   size="20" maxlength="20"> 

  
   
  
key="fieldLabel.sender_id_type"/>
  
  
  


  
   size="12" maxlength="22" disabled="true">



  
  		  
  
key="fieldLabel.status"/>
  
  
  
  
  
  
   size="22" maxlength="22"> 

 
key="fieldLabel.bene_fname"/> 
   size="20" maxlength="20"> 


  
   size="20" maxlength="20"> 
  
 
key="fieldLabel.bene_id_type"/> 

  
  
  
   size="20" maxlength="20"> 


  
   size="20" maxlength="20"> 

 
key="fieldLabel.updated_by"/> 
   size="20" maxlength="20"> 

  
  
  
   size="20" maxlength="20"> 

 
key="fieldLabel.cancelled_by"/> 
   size="20" maxlength="20"> 


  
   size="20" maxlength="20"> 

  
  
  

  
  
   
  



  Save
  Register
Transfer
  Query
Mode
  Get
Transfer
  Delete
Transfer
  


























name="enableFields">
   type="text/javascript">  
   
   




	  	  
  

RE: HTML file generated by JSP is truncated...why?...Please help!...source attached

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" %>

">  
 
 

  

  

  

  


  

  
  
  
   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"> 


  


  




  
  

  
  
  
  

  
  
  
  
  
  
  
  
  
  
  
  

  
  
  
  
  
  
  
   



  




  
  
  




  
  
  
  



  
   


  

  
  
  


  


  
  

  
   



  


  
 

  
http://localhost/moneyTrans/pages/jsp/reports/payOutPointsLOV.jsp',
550, 550 );"/>

  


  

  
  
  


  

  
  
  
   http://localhost/moneyTrans/pages/jsp/reports/sendersLOV.jsp',
550, 550 );" property="sender_id"  size="28"
maxlength="30" disabled="true"> 
 

  


  

  
   
  
  
  
  


  
   


  
  
  
  
  
  
  
  
  


  


  

  
  

  
  
  


  


  

  
  
  


  


  

  
  
  
  
  
   
  


  Save
  Register
Transfer
  Query
Mode
  Get
Transfer
  Delete
Transfer
  
























 
   
   



  
  
 
document.forms[0].save.disabled = true;
 
 
   
   
  




 
   
   


  







GENERATED HTML CODE
===


  
Fujimitsu Ltd.
   
   
  

   Sign out 
   Menu 
  OLACS

  
   
   


   



   





   
   
   






   
   
   



   





   
 

  

  
Transfer Id
 

 Created By 



Transferred On 

  
  
 Collecting Rep Id

   http://localhost/moneyTrans/pages/jsp/reports/repsLOV.jsp',
550, 550, document.forms[0].userRole.value);"
disabled="disabled"> 



Collecting Rep Branch Id 


 Rep Emp 
2




  
  

  From Country
  nigeria
united k


  

  To Country
  nigeria
united k