tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ricardo L. A. Bánffy" <>
Subject RE: Should there be a defined sequence in the processing of jsp
Date Tue, 18 Apr 2000 17:50:09 GMT
If Tomcat (or GNUJSP) behave like ASP, the requests from the same session
are serialized - the first one completes execution before the other begins
executing. This happens because of the session object. I believe this
behaviour is too restrictive in that execution should only be blocked when
you try to modify the session object (any object with a session scope).

If, however, you use a session="false" in a <%@ page directive, there is no
reason why execution should happen in that particular session.

Does anyone know what really happens?

-----Original Message-----
From: Ralph Einfeldt []
Sent: Tuesday, April 18, 2000 1:23 PM
To: ''; ''
Subject: Should there be a defined sequence in the processing of jsp

Hash: SHA1

I have 2 JSP as follows:

(Don't care to much that this example
is useless, I have stripped my real
pages down to this skeleton)


	some HTML
	<% session.putValue("aValue", "HamstiBamsti"); %>
	some HTML
	<% pageContext.include("page2.jsp"); %>
	some HTML
	<%= session.getValue("aValue") %>
	some HTML

	<%= session.putValue("aValue", "NannoNanno") %>

Do I have any garanties that <%= session.getValue("aValue") %>
will (or should) return "NannoNanno" when one request is made?
(With two requests in the same session there is good chance to
get "HamstiBamsti")

Ralph Einfeldt
Uptime Internet Solution Center GmbH
Eiffestraße 426
D-20537 Hamburg
Telefon: +49 (0) 40 / 25 49 77 00


Version: PGP 6.0.2


To unsubscribe, email:
For additional commmands, email:

View raw message