You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Steve Vanspall <st...@crmsoftware.com.au> on 2002/09/27 05:45:23 UTC

org.apache.coyote.http11.Http11Processor.process taking a long time

Hi there, I have a Java object that stores html code in a string for in order to speed my Web App up. 

Basically it Works similarly to an Array list, but updates the html code for each bean as it is added/update, thus removing the need for getting the JSP to iterate through an ArrayList and write the HTML specifically for it. So basically in my JSP all i need do is but a scriplet <%=list.html()%> where list is the the list of records.

Now this part works fine. But if the there is alot of html code in the string i.e. a large number of records, there seems to be a fairly slow method being invoked in 

org.apache.coyote.http11.Http11Processor.process(java.io.InputStream, java.io.OutputStream)

as seems to be the case when I debug it.

Does anyone know anything aobut this method, or under what Apache project the source code may be so I can see what is causing the problem, and hopefuly change my Web App to accomodate this.

Any help would be great.

Steve

Re: org.apache.coyote.http11.Http11Processor.process taking a long time

Posted by Eddie Bush <ek...@swbell.net>.
I am unclear on what your question is.  ... but I think you're 
(basically) asking what you need to do in order to use the JSTL.  Could 
I possibly suggest that you:
    - actually read the information that came with your JSTL distrib
        (you'll find what you need to do to have the taglib included for 
a JSP)
    - look at the (excellent) documentation provided on the JSTL 
jakarta/Sun pages
        (the specification isn't a bad read - and Sun's site has a 
really good reference too which is much shorter)

I'm not going to tell you how to declare every taglib :-)  This can be 
found easily by STFW.  So far as variables and what you can/cannot use, 
the specification would be the authority.  However ... you have access 
to variables in each of the four scopes.  There (I believe) are 
different ways to reference them:

${<which>Scope['key']} - where <which> is one of (page | request | 
session | application)
${key} - I *believe* this will "walk the scopes" and find the attribute 
by name (though I am unclear on this - should look at the spec)

Steve Vanspall wrote:

>Ok two extra questions then
>
>Do I need any extra taglib's for using JSTL?
>
>and does the list itself need to be a variable in the form I am using, or
>can it be a variable on the page?
>
>Regards
>
>Steve
>

-- 
Eddie Bush




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: org.apache.coyote.http11.Http11Processor.process taking a long time

Posted by Steve Vanspall <st...@crmsoftware.com.au>.
Ok two extra questions then

Do I need any extra taglib's for using JSTL?

and does the list itself need to be a variable in the form I am using, or
can it be a variable on the page?

Regards

Steve
----- Original Message -----
From: "Eddie Bush" <ek...@swbell.net>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Friday, September 27, 2002 3:15 PM
Subject: Re: org.apache.coyote.http11.Http11Processor.process taking a long
time


> This belongs in tomcat-user or tomcat-dev.  I would suggest refactoring
> your "list" to have "html" as a property though (ie.
> getHTML()/setHTML()).  Then, you can use the JSTL to extract this value
> and do away with scriplets - which are simply evil.
>
> Once you do that, replace your scriplet with:
>
> <c:out value="${listVar.html}"/>
>
> Steve Vanspall wrote:
>
> >Hi there, I have a Java object that stores html code in a string for in
order to speed my Web App up.
> >
> >Basically it Works similarly to an Array list, but updates the html code
for each bean as it is added/update, thus removing the need for getting the
JSP to iterate through an ArrayList and write the HTML specifically for it.
So basically in my JSP all i need do is but a scriplet <%=list.html()%>
where list is the the list of records.
> >
> >Now this part works fine. But if the there is alot of html code in the
string i.e. a large number of records, there seems to be a fairly slow
method being invoked in
> >
> >org.apache.coyote.http11.Http11Processor.process(java.io.InputStream,
java.io.OutputStream)
> >
> >as seems to be the case when I debug it.
> >
> >Does anyone know anything aobut this method, or under what Apache project
the source code may be so I can see what is causing the problem, and
hopefuly change my Web App to accomodate this.
> >
> >Any help would be great.
> >
> >Steve
> >
>
> --
> Eddie Bush
>
>
>
>
> --
> 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: org.apache.coyote.http11.Http11Processor.process taking a long time

Posted by Eddie Bush <ek...@swbell.net>.
This belongs in tomcat-user or tomcat-dev.  I would suggest refactoring 
your "list" to have "html" as a property though (ie. 
getHTML()/setHTML()).  Then, you can use the JSTL to extract this value 
and do away with scriplets - which are simply evil.

Once you do that, replace your scriplet with:

<c:out value="${listVar.html}"/>

Steve Vanspall wrote:

>Hi there, I have a Java object that stores html code in a string for in order to speed my Web App up. 
>
>Basically it Works similarly to an Array list, but updates the html code for each bean as it is added/update, thus removing the need for getting the JSP to iterate through an ArrayList and write the HTML specifically for it. So basically in my JSP all i need do is but a scriplet <%=list.html()%> where list is the the list of records.
>
>Now this part works fine. But if the there is alot of html code in the string i.e. a large number of records, there seems to be a fairly slow method being invoked in 
>
>org.apache.coyote.http11.Http11Processor.process(java.io.InputStream, java.io.OutputStream)
>
>as seems to be the case when I debug it.
>
>Does anyone know anything aobut this method, or under what Apache project the source code may be so I can see what is causing the problem, and hopefuly change my Web App to accomodate this.
>
>Any help would be great.
>
>Steve
>

-- 
Eddie Bush




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>