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=38797>. 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=38797 ------- Additional Comments From [EMAIL PROTECTED] 2007-03-09 08:52 ------- I noticed too the change. The behaviour is in Tomcat 5.5.20, here is the following exception : org.apache.jasper.JasperException: Tentative d''opération bean sur un objet nul. org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty(JspRuntimeLibrary.java:601) org.apache.jsp.test3_005f2_jsp._jspService(test3_005f2_jsp.java:77) This not the same bug as 37933. It is an error that is due to the bug correction :(. (well but the correction of the bug 37933 is not easy) I explain. I have a custom tag that defines a scripting variable. This variable is in a request attribute. The custom tag library defines a scripting variable with a Tag Extra Info class. The TLD declares a tag with the tag class implementation and the Tag Extra Info class implementation. The tag is named "variable". The tag has 3 attributes "id", "className", "scopeIn". The object "Song" has a property "title". Here is where it fails : <%@ taglib uri="http://www.scort.com/test" prefix="test" %> ... <!-- The variable is set in the scope request --> <test:variable id="mysong" className="tomcat.test.Song" scopeIn="request" /> ... Title : <jsp:getProperty name="mysong" property="title" /> => mysong is said to be null But here is a page where it works : <%@ taglib uri="http://www.scort.com/test" prefix="test" %> ... <!-- The variable is set in the scope page --> <test:variable id="mysong" className="tomcat.test.Song" scopeIn="page" /> ... Title : <jsp:getProperty name="mysong" property="title" /> Finally it always works with jsp:useBean : <jsp:useBean id="mysong" class="tomcat.test.Song" scope="request" /> ... Title : <jsp:getProperty name="mysong" property="title" /> The custom library i wrote defined a VariableInfo that expose a scripting variable into the page. So i thought (think) it was the key to allow it into the jspGetProperty. -------------------------------------- Reference in the specification JSP 2.0 JSP5.3 : "The value of the name attribute in jsp:setProperty andjsp:getProperty will refer to an object that is obtained from the pageContext object through its findAttribute method." Hope it helps. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]