You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2006/11/06 17:33:56 UTC
DO NOT REPLY [Bug 40911] New: - problem with request response scope
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40911>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40911
Summary: problem with request response scope
Product: Tomcat 4
Version: 4.0.4 Final
Platform: Other
OS/Version: AIX
Status: NEW
Severity: major
Priority: P2
Component: Servlet & JSP API
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: ricardo_manzano@es.ibm.com
When accesing a request variable affect the value of the variable with the same
name in the session. It supposes that they should have different memory
locations, no?
minimal jsp example :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</head>
<body bgcolor="#FFFFFF" leftmargin=0 topmargin=0 rightmargin=0>
<center>
<% session.putValue("prueba","hola"); %>
<br> prueba en sesion 1 = <%=session.getValue("prueba")%>
<br> prueba en request 1 = <%=request.getAttribute("prueba")%>
<% request.setAttribute("prueba","adios"); %>
<br> prueba en sesion 2 = <%=session.getValue("prueba")%>
<br> prueba en request 2 = <%=request.getAttribute("prueba")%>
<br> prueba en sesion 3 = <%=session.getValue("prueba")%>
<br> prueba en request 3 = <%=request.getAttribute("prueba")%>
</center>
</body>
</html>
RESULT:
----------------
prueba en sesion 1 = hola
prueba en request 1 = hola
prueba en sesion 2 = adios
prueba en request 2 = adios
prueba en sesion 3 = null
prueba en request 3 = adios
The same code in PC with websphere works fine.
It seams that the change of one affect the other value, what seams more strange
is that accessing the value of the request put the value of the session to null.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 40911] - problem with request session scope
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40911>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40911
markt@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |INVALID
------- Additional Comments From markt@apache.org 2006-11-07 18:29 -------
I have just completed the following steps:
- installed a clean version of 4.1.34
- set JAVA_HOME to point to a 1.3.x JVM
- started Tomcat
- created a file called test.jsp under webapps/ROOT and copied the contents of
your example above
- opened http://localhost:8080/test.jsp in a browser
The results are exactly as expected.
It appears that there is something odd with your configuration. One things that
jumps out at me is that your path includes jakarta-tomcat-4.1.34
4.1.34 was distributed as apache-tomcat-4.1.34
I am certain there is no bug here. You should use the Tomcat users list to help
you identify what you configuration problem is.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 40911] - problem with request session scope
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40911>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40911
ricardo_manzano@es.ibm.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|problem with request |problem with request session
|response scope |scope
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 40911] - problem with request session scope
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40911>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40911
markt@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From markt@apache.org 2006-11-06 18:09 -------
I have confirmed that has been fixed in 4.1.34. I can't see from the change log
where it was fixed but there were a number of fixes in 4.1.6 that might include
a fix for this.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 40911] - problem with request session scope
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40911>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40911
ricardo_manzano@es.ibm.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
------- Additional Comments From ricardo_manzano@es.ibm.com 2006-11-07 03:12 -------
I have tried now with tomcat 4.1.34 but the problem persist.
I am using java 1.3.1 in an aix.
this is a ps of the tomcat process
maiadsr 52622 1 0 11:47:24 pts/1 0:25 /usr/java131/bin/java -Dcom.maia.
gestores.autoarranque=true -Djava.endorsed.dirs=/var/opt/maiadsr/usr/jakarta-tom
cat-4.1.34/common/endorsed -classpath /usr/java131/lib/tools.jar:/usr/jsse1.0.3/
lib/jcert.jar:/usr/jsse1.0.3/lib/jnet.jar:/usr/jsse1.0.3/lib/jsse.jar:/var/opt/m
aiadsr/usr/jakarta-tomcat-4.1.34/bin/bootstrap.jar -Dcatalina.base=/var/opt/maia
dsr -Dcatalina.home=/var/opt/maiadsr/usr/jakarta-tomcat-4.1.34 -Djava.io.tmpdir=
/var/opt/maiadsr/temp org.apache.catalina.startup.Bootstrap start
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org