You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Thielen <da...@windward.net> on 2003/08/14 06:13:35 UTC

Code of a method longer than 65535 bytes

Hi;

Inside a form I have 2 address blocks - each with a selection of countries. This is more that 64K chars inside the <html-el:form... >

Any ideas how to get around this?

thanks - dave

Re: Code of a method longer than 65535 bytes

Posted by David Thielen <da...@windward.net>.
thank you - good idea


----- Original Message ----- 
From: "Mark Galbreath" <ma...@qat.com>
To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
Sent: Thursday, August 14, 2003 7:45 AM
Subject: RE: Code of a method longer than 65535 bytes


Don't use the page directive (@), use <jsp:include/> and you will find the
64k limitation can be circumvented.

Mark

-----Original Message-----
From: David Thielen [mailto:dave@windward.net]
Sent: Thursday, August 14, 2003 9:37 AM
To: Struts Users Mailing List
Subject: Re: Code of a method longer than 65535 bytes


I'm using JRun 4 - and need it for the EJB support so Tomcat's out. I also
use %@include file="countries.jsp"% to pull the countries in. But regardless
of how they are pulled in, they will be expanded within the form to be the
actual select text.

I guess I'll push Macromedia to eliminate the 64K limit.

thanks - dave


----- Original Message ----- 
From: "Craig R. McClanahan" <cr...@apache.org>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>;
<su...@wipro.com>
Sent: Thursday, August 14, 2003 12:31 AM
Subject: RE: Code of a method longer than 65535 bytes


> On Thu, 14 Aug 2003, Suresh Addagalla wrote:
>
> > Date: Thu, 14 Aug 2003 10:33:38 +0530
> > From: Suresh Addagalla <su...@wipro.com>
> > Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>,
> >      suresh.addagalla@wipro.com
> > To: 'Struts Users Mailing List' <st...@jakarta.apache.org>
> > Subject: RE: Code of a method longer than 65535 bytes
> >
> >
> > Hello Criag,
> >
> > > * Use a JSP page compiler that doesn't make page developers deal
> > >   with the 64k limit problem (like Tomcat 4.1 or 5.0).
> >
> > I am using Tomcat 4.1.12 on Windows, and I got this problem. If any
> > one has a clear idea on the min version of Tomcat I should use to
> > get rid of this problem, please let me know.
> >
>
> Jasper2 was introduced around 4.1.18 or so, so anything later than
> that would be a good bet.  The current production version is 4.1.27.
>
> But for the particular case of lots of countries being used twice, you
> should really really really be using <html:options> no matter what
> container you run on, so that updates to the list only have to happen
> in one place rather than two.
>
> > Thanks,
> > Suresh
>
> Craig
>
> PS:  If you're currently using a Jasper1 based Tomcat, you'll also be
> very pleased with the performance improvements in rendering speed for
> Jasper2 compiled JSP pages.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Code of a method longer than 65535 bytes

Posted by Mark Galbreath <ma...@qat.com>.
Don't use the page directive (@), use <jsp:include/> and you will find the
64k limitation can be circumvented.

Mark

-----Original Message-----
From: David Thielen [mailto:dave@windward.net] 
Sent: Thursday, August 14, 2003 9:37 AM
To: Struts Users Mailing List
Subject: Re: Code of a method longer than 65535 bytes


I'm using JRun 4 - and need it for the EJB support so Tomcat's out. I also
use %@include file="countries.jsp"% to pull the countries in. But regardless
of how they are pulled in, they will be expanded within the form to be the
actual select text.

I guess I'll push Macromedia to eliminate the 64K limit.

thanks - dave


----- Original Message ----- 
From: "Craig R. McClanahan" <cr...@apache.org>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>;
<su...@wipro.com>
Sent: Thursday, August 14, 2003 12:31 AM
Subject: RE: Code of a method longer than 65535 bytes


> On Thu, 14 Aug 2003, Suresh Addagalla wrote:
>
> > Date: Thu, 14 Aug 2003 10:33:38 +0530
> > From: Suresh Addagalla <su...@wipro.com>
> > Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>,
> >      suresh.addagalla@wipro.com
> > To: 'Struts Users Mailing List' <st...@jakarta.apache.org>
> > Subject: RE: Code of a method longer than 65535 bytes
> >
> >
> > Hello Criag,
> >
> > > * Use a JSP page compiler that doesn't make page developers deal
> > >   with the 64k limit problem (like Tomcat 4.1 or 5.0).
> >
> > I am using Tomcat 4.1.12 on Windows, and I got this problem. If any 
> > one has a clear idea on the min version of Tomcat I should use to 
> > get rid of this problem, please let me know.
> >
>
> Jasper2 was introduced around 4.1.18 or so, so anything later than 
> that would be a good bet.  The current production version is 4.1.27.
>
> But for the particular case of lots of countries being used twice, you 
> should really really really be using <html:options> no matter what 
> container you run on, so that updates to the list only have to happen 
> in one place rather than two.
>
> > Thanks,
> > Suresh
>
> Craig
>
> PS:  If you're currently using a Jasper1 based Tomcat, you'll also be 
> very pleased with the performance improvements in rendering speed for 
> Jasper2 compiled JSP pages.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Code of a method longer than 65535 bytes

Posted by David Thielen <da...@windward.net>.
I'm using JRun 4 - and need it for the EJB support so Tomcat's out. I also
use %@include file="countries.jsp"% to pull the countries in. But regardless
of how they are pulled in, they will be expanded within the form to be the
actual select text.

I guess I'll push Macromedia to eliminate the 64K limit.

thanks - dave


----- Original Message ----- 
From: "Craig R. McClanahan" <cr...@apache.org>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>;
<su...@wipro.com>
Sent: Thursday, August 14, 2003 12:31 AM
Subject: RE: Code of a method longer than 65535 bytes


> On Thu, 14 Aug 2003, Suresh Addagalla wrote:
>
> > Date: Thu, 14 Aug 2003 10:33:38 +0530
> > From: Suresh Addagalla <su...@wipro.com>
> > Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>,
> >      suresh.addagalla@wipro.com
> > To: 'Struts Users Mailing List' <st...@jakarta.apache.org>
> > Subject: RE: Code of a method longer than 65535 bytes
> >
> >
> > Hello Criag,
> >
> > > * Use a JSP page compiler that doesn't make page developers deal
> > >   with the 64k limit problem (like Tomcat 4.1 or 5.0).
> >
> > I am using Tomcat 4.1.12 on Windows, and I got this problem. If any one
> > has a clear idea on the min version of Tomcat I should use to get rid of
> > this problem, please let me know.
> >
>
> Jasper2 was introduced around 4.1.18 or so, so anything later than that
> would be a good bet.  The current production version is 4.1.27.
>
> But for the particular case of lots of countries being used twice, you
> should really really really be using <html:options> no matter what
> container you run on, so that updates to the list only have to happen in
> one place rather than two.
>
> > Thanks,
> > Suresh
>
> Craig
>
> PS:  If you're currently using a Jasper1 based Tomcat, you'll also be very
> pleased with the performance improvements in rendering speed for Jasper2
> compiled JSP pages.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Code of a method longer than 65535 bytes

Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Thu, 14 Aug 2003, Suresh Addagalla wrote:

> Date: Thu, 14 Aug 2003 10:33:38 +0530
> From: Suresh Addagalla <su...@wipro.com>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>,
>      suresh.addagalla@wipro.com
> To: 'Struts Users Mailing List' <st...@jakarta.apache.org>
> Subject: RE: Code of a method longer than 65535 bytes
>
>
> Hello Criag,
>
> > * Use a JSP page compiler that doesn't make page developers deal
> >   with the 64k limit problem (like Tomcat 4.1 or 5.0).
>
> I am using Tomcat 4.1.12 on Windows, and I got this problem. If any one
> has a clear idea on the min version of Tomcat I should use to get rid of
> this problem, please let me know.
>

Jasper2 was introduced around 4.1.18 or so, so anything later than that
would be a good bet.  The current production version is 4.1.27.

But for the particular case of lots of countries being used twice, you
should really really really be using <html:options> no matter what
container you run on, so that updates to the list only have to happen in
one place rather than two.

> Thanks,
> Suresh

Craig

PS:  If you're currently using a Jasper1 based Tomcat, you'll also be very
pleased with the performance improvements in rendering speed for Jasper2
compiled JSP pages.


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Code of a method longer than 65535 bytes

Posted by Suresh Addagalla <su...@wipro.com>.
Hello Criag,

> * Use a JSP page compiler that doesn't make page developers deal
>   with the 64k limit problem (like Tomcat 4.1 or 5.0).

I am using Tomcat 4.1.12 on Windows, and I got this problem. If any one
has a clear idea on the min version of Tomcat I should use to get rid of
this problem, please let me know.

Thanks,
Suresh

> -----Original Message-----
> From: Craig R. McClanahan [mailto:craigmcc@apache.org] 
> Sent: Thursday, August 14, 2003 10:21 AM
> To: Struts Users Mailing List
> Subject: Re: Code of a method longer than 65535 bytes
> 
> 
> On Wed, 13 Aug 2003, David Thielen wrote:
> 
> > Date: Wed, 13 Aug 2003 22:13:35 -0600
> > From: David Thielen <da...@windward.net>
> > Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
> > To: Struts-Users <st...@jakarta.apache.org>
> > Subject: Code of a method longer than 65535 bytes
> >
> > Hi;
> >
> > Inside a form I have 2 address blocks - each with a selection of 
> > countries. This is more that 64K chars inside the <html-el:form... >
> >
> > Any ideas how to get around this?
> >
> 
> Two straightforward ideas:
> 
> * Use a single <html:options> tag instead of a bunch of <html:option>
>   tags to specify the options.  You can point at the same list of
>   label-value beans for both address blocks.
> 
> * Use a JSP page compiler that doesn't make page developers deal
>   with the 64k limit problem (like Tomcat 4.1 or 5.0).
> 
> > thanks - dave
> 
> Craig


**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Code of a method longer than 65535 bytes

Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Wed, 13 Aug 2003, David Thielen wrote:

> Date: Wed, 13 Aug 2003 22:13:35 -0600
> From: David Thielen <da...@windward.net>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
> To: Struts-Users <st...@jakarta.apache.org>
> Subject: Code of a method longer than 65535 bytes
>
> Hi;
>
> Inside a form I have 2 address blocks - each with a selection of
> countries. This is more that 64K chars inside the <html-el:form... >
>
> Any ideas how to get around this?
>

Two straightforward ideas:

* Use a single <html:options> tag instead of a bunch of <html:option>
  tags to specify the options.  You can point at the same list of
  label-value beans for both address blocks.

* Use a JSP page compiler that doesn't make page developers deal
  with the 64k limit problem (like Tomcat 4.1 or 5.0).

> thanks - dave

Craig


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Code of a method longer than 65535 bytes

Posted by Jacek Zoch <zo...@poczta.onet.pl>.
----- Original Message ----- 
From: "David Thielen" <da...@windward.net>


> Inside a form I have 2 address blocks - each with a selection of
countries. This is more that 64K chars inside the > <html-el:form... >

> Any ideas how to get around this?

Don`t use tags it- dosen`t make sense. Use scriplets - they produce much
better code and page is faster.

Jacek



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org