tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 14980] - jsp:getProperty not working .
Date Sun, 01 Dec 2002 13:53:47 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14980>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14980

jsp:getProperty not working .

ralf.reddin@gmx.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ralf.reddin@gmx.de
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From ralf.reddin@gmx.de  2002-12-01 13:53 -------
jsp:getProperty is working fine. The problem is found in  
two different objects of "organization":  
  
The object "organization" is a local variable on the page and  
by using jsp:useBean a new instance of HROrganization is  
created, stored in the session and assigned to the local  
variable "organization". In your scriptlet you change the  
value of the local variable, but you don't change the object  
instance in the session. Hence accessing the session object  
(by jsp:getPropert) is using another instance than the access  
of the local variable (by using <%=organization.get....%>). 
 
Don't try to mix jsp:userBean with scriplets. A work-around 
could be to add a  
line after  
organization = om.getOrganization(orgId,true); 
like this (to update the instance that is holded in the 
session: 
session.put("organization", organization);

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message