You raise an interesting question. JSP custom tag libraries were added to the JSP 1.1 spec, the jsp:useBean, jsp:setProperty, jsp:getProperty were part of the earlier JSP spec. >From reading the JSP 1.1 spec, it is unclear to me whether a scripting variable defined by a JSP custom tag has to be a Bean in order to work with jsp:getProperty/jsp:setProperty. I know that the Tomcat Servlet 2.2/JSP 1.1 reference implemenation does not require a custom tag script variable to be a Bean. I don't know if this question has been addressed by the JSP spec group or not. In answer to your question, the first method below is the way the session scripting variable is designed to work. So that you don't have to embed Java code in a scriptlet to use it, the standard jsp:getProperty tag can be used. Weblogic has used the more strict interpretation of the JSP 1.1 spec. So you have to access the session scripting variable properties using a scriptlet. Regards, Glenn "Sriram Narayan (CTS)" wrote: > > hi > This is a usage question. (motivation for this question is that weblogic > doesn't support the jsp:getProperty with dynamically named scripting > variables.) > > Usage-1: > > <sess:session id="ss"/> > Session Information: > CreationTime: <jsp:getProperty name="ss" property="creationTime"/> > ... > > with this weblogic.jspc says "ss is not defined as bean" > but if i change above code to : > > Usage-2 : > > <sess:session id="ss"/> > Session Information: > CreationTime: <%= ss.getCreationTime() %> > > it works fine. > 1. assuming that both ways of getting the property worked fine, is there any > reason to prefer the first over the second? > > 2. Does the spec mandate support of jsp:getProperty for dynamically named > scripting variables? > > thanks > sriram > Cognizant Technology Solutions - Pune. > > This e-mail and any files transmitted with it are for the sole use > of the intended recipient(s) and may contain confidential and privileged information. > If you are not the intended recipient, please contact the sender by reply e-mail and > destroy all copies of the original message. Any unauthorised review, use, disclosure, > dissemination, forwarding, printing or copying of this email or any action taken in > reliance on this e-mail is strictly prohibited and may be unlawful. > > Visit us at http://www.cognizant.com -- ---------------------------------------------------------------------- Glenn Nielsen [EMAIL PROTECTED] | /* Spelin donut madder | MOREnet System Programming | * if iz ina coment. | Missouri Research and Education Network | */ | ----------------------------------------------------------------------