Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Strange behaviour with buffers

Strange behaviour with buffers

2004-05-19       - By Jason Irwin

 Back
Reply:     1     2     3     4     5     6     7     8  

Apologies if this is in the wrong group, I think that "User" is the right
one.

I have noted a difference between how Tomcat (4.0.6 and 4.1.127) and
WebLogic (7.0 and 8.1) assign buffers, and I'm trying to figure out which
one is correct.  I have an "outer" page that does not define any buffer, and
an "inner" page that does, e.g.:
"outer.jsp"
<html>
   <body>
       Outer buffer is <%=out.getBufferSize()%><BR>
       Outer remaining is <%=out.getRemaining()%><BR>
       <jsp:include page="inner.jsp" /><BR>
       Outer buffer is now <%=out.getBufferSize()%><BR>
       Outer remaining is now <%=out.getRemaining()%>
   </body>
<html>

"inner.jsp"
<%@ page buffer="64kb" %>
Inner buffer is <%=out.getBufferSize()%><BR>
Inner remaining is <%=out.getRemaining()%>

Tomcat reports 8kb for "outer.jsp" and then 64kb for "inner.jsp".  The
remaining buffer sizes are unrelated.  WebLogic reports 12kb for both and
the remaining buffer are related.  It's as if Tomcat creates new JspWriter
for each dynamic include, but WebLogic keeps using the same JspWriter.  BEA
have confirmed that this is their expected behaviour.

Is anyone able to confirm if BEA are correct in their interpretation of the
JSP Specification and, if so, why Tomcat is behaving the way it does?  Is
this just a case of a differing opinion on the same spec?  I've had a look
through the documentation and drawn a blank.

Thanks in advance,

Jason.

__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.