tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ricardo L. A. Bánffy" <rica...@organic.com.br>
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 [mailto:ralph.einfeldt@uptime-isc.de]
Sent: Tuesday, April 18, 2000 1:23 PM
To: 'gnujsp@gjt.org'; 'tomcat-user@jakarta.apache.org'
Subject: Should there be a defined sequence in the processing of jsp


-----BEGIN PGP SIGNED MESSAGE-----
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)

page1.jsp:

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

page2.jsp:
	<%= 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

<Mailto:Ralph.Einfeldt@uptime-isc.de>

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.0.2

iQA/AwUBOPx90MXHsIWwyO+rEQL21ACgoVA+mK07F93lwdWadvMEcuP2pBgAn3MJ
5L58bMgyNynlHZp2dZer/4/A
=mlkd
-----END PGP SIGNATURE-----

--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org


Mime
View raw message