more background on <<Exception accessing property "prop1" for bean "bean1": java.lang.NoSuchMethodException: Unknown property 'prop1>>' ---------------------------------------------------------------------------------------------------------------------------------------
Key: STR-3181 URL: https://issues.apache.org/struts/browse/STR-3181 Project: Struts 1 Issue Type: Improvement Environment: java 1.5, any Reporter: Ralf Hauser <logic:iterate id="myhashtable" name="myhashtable" scope="session"> <logic:equal property="prop1" name="myhashtable" scope="session"> ... it works without the logic:equal doesn't have the 'scope="session"'. Otherwise, the list elements have the correct bean with a getter for "prop1", but you still see the exception since the logic tag is not accessing the collection element, but the entire collection object javax.servlet.jsp.JspException: Exception accessing property "prop1" for bean "bean1": java.lang.NoSuchMethodException: Unknown property 'prop1' at org.apache.struts.taglib.logic.CompareTagBase.condition(CompareTagBase.java:191) at org.apache.struts.taglib.logic.LessEqualTag.condition(LessEqualTag.java:43) at org.apache.struts.taglib.logic.ConditionalTagBase.doStartTag(ConditionalTagBase.java:160) at org.apache.jsp.myPage_005fen_jsp._jspx_meth_logic_lessEqual_0(myPage_005fen_jsp.java:7334) at org.apache.jsp.myPage_005fen_jsp._jspService(myPage_005fen_jsp.java:2138) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.