You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Thinh Doan <td...@twjconsulting.com> on 2002/06/11 02:03:41 UTC
jsp/tomcat croaks on too many
I had a jsp with about 70 <html:text.../> input fields. At about 60 fields
or so, tomcat (4.0.3 on Win NT) died. Does anyone know what the reason might
be? I changed the page buffer and it did not help.
Thanks for your help.
THinh
PS: each <html:text.../> has an accompanied label using <bean:message
key.../> tag.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
html:link
Posted by Keith Chew <ke...@jungledrum.co.nz>.
Hi
I was wondering if there is a tag to generate a url link from a map, and
preserve the sessionid. Just like what html:link is doing. Ie
<html:link page="somelink" name="someBean" property="someMap/>
I want something like:
<html:writelink page="somelink" name="someBean" property="someMap/>
which will output the href part only, without the <a> tag.
This is useful if I want to perform a link in Javascript. Or are there other
alternatives?
Thanks
Keith
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: jsp/tomcat croaks on too many
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Mon, 10 Jun 2002, Thinh Doan wrote:
> Date: Mon, 10 Jun 2002 23:52:33 -0500
> From: Thinh Doan <td...@twjconsulting.com>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>,
> tdoan@twjconsulting.com
> To: Struts Users Mailing List <st...@jakarta.apache.org>
> Subject: RE: jsp/tomcat croaks on too many <html:text>
>
> Craig,
>
> Your response got lost in the netherworld somewhere. Please repost.
>
The problem is a limitation in the way that the Java code for a JSP page
is generated -- the JVM imposes a 64kb limit on the size of a method, and
the entire page is rendered as a single method (for technical reasons,
this is basically the only choice). Current JSP page compilers generate a
*lot* of code for each tag, and when you get up to around 70 (imagine
that), you tend to overflow the 64k limit.
There is a lot of effort going on in the Tomcat 4.1.x development branch
to replace the original page compiler -- both for improved execution speed
(which is *very* visible to Struts users, or anyone else who uses lots of
custom tags) and to reduce the impact of this limitation for pages that do
not have scriptlets in them (like well-formed Struts pages :-). You might
try the recent 4.1.3 beta and see if it's better (although they haven't
changed everything planned to deal with the method size limit yet).
In the absence of a better page compiler, you've only got two choices:
* Reduce the number of tags used on your page, and/or
* Break your page up by using <jsp:include> to grab
pieces of it. (Using <%@ include %> will not help,
because it does the include at compile time and
still creates the large method.
> Thanks much,
>
> Thinh
Craig
>
> -----Original Message-----
> From: Craig R. McClanahan [mailto:craigmcc@apache.org]
> Sent: Monday, June 10, 2002 8:21 PM
> To: Struts Users Mailing List; tdoan@twjconsulting.com
> Subject: Re: jsp/tomcat croaks on too many <html:text>
>
>
>
>
> On Mon, 10 Jun 2002, Thinh Doan wrote:
>
> > Date: Mon, 10 Jun 2002 19:03:41 -0500
> > From: Thinh Doan <td...@twjconsulting.com>
> > Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>,
> > tdoan@twjconsulting.com
> > To: Struts-User <st...@jakarta.apache.org>
> > Subject: jsp/tomcat croaks on too many <html:text>
> >
> > I had a jsp with about 70 <html:text.../> input fields. At about 60 fields
> > or so, tomcat (4.0.3 on Win NT) died. Does anyone know what the reason
> might
> > be? I changed the page buffer and it did not help.
> >
> > Thanks for your help.
> >
> > THinh
> >
> > PS: each <html:text.../> has an accompanied label using <bean:message
> > key.../> tag.
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: jsp/tomcat croaks on too many
Posted by Thinh Doan <td...@twjconsulting.com>.
Craig,
Your response got lost in the netherworld somewhere. Please repost.
Thanks much,
Thinh
-----Original Message-----
From: Craig R. McClanahan [mailto:craigmcc@apache.org]
Sent: Monday, June 10, 2002 8:21 PM
To: Struts Users Mailing List; tdoan@twjconsulting.com
Subject: Re: jsp/tomcat croaks on too many <html:text>
On Mon, 10 Jun 2002, Thinh Doan wrote:
> Date: Mon, 10 Jun 2002 19:03:41 -0500
> From: Thinh Doan <td...@twjconsulting.com>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>,
> tdoan@twjconsulting.com
> To: Struts-User <st...@jakarta.apache.org>
> Subject: jsp/tomcat croaks on too many <html:text>
>
> I had a jsp with about 70 <html:text.../> input fields. At about 60 fields
> or so, tomcat (4.0.3 on Win NT) died. Does anyone know what the reason
might
> be? I changed the page buffer and it did not help.
>
> Thanks for your help.
>
> THinh
>
> PS: each <html:text.../> has an accompanied label using <bean:message
> key.../> tag.
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: jsp/tomcat croaks on too many
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Mon, 10 Jun 2002, Thinh Doan wrote:
> Date: Mon, 10 Jun 2002 19:03:41 -0500
> From: Thinh Doan <td...@twjconsulting.com>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>,
> tdoan@twjconsulting.com
> To: Struts-User <st...@jakarta.apache.org>
> Subject: jsp/tomcat croaks on too many <html:text>
>
> I had a jsp with about 70 <html:text.../> input fields. At about 60 fields
> or so, tomcat (4.0.3 on Win NT) died. Does anyone know what the reason might
> be? I changed the page buffer and it did not help.
>
> Thanks for your help.
>
> THinh
>
> PS: each <html:text.../> has an accompanied label using <bean:message
> key.../> tag.
>
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>