during the manipulation of a session attribute, at one point, instead of setting the entire form, I only gave it a field's content, i.e. a string. 1) there is no complaint when changing the class assigned to a key in the session. 2) so, I am getting an error the following kind <<org.apache.jasper.JasperException: Exception accessing property systemNotice for bean SysMsg: java.lang.NoSuchMethodException: Unknown property 'systemNotice' at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) ...>> Suggestion: It would be very helpful if the type of Class a bean has in this case. If it told me that the String bean had no such method, I would have found the error a lot quicker since I knew it should be AdminActionForm.
This is a Jasper page compiler exception, not Struts. Also, it already names the bean "SysMsg" in the exception message.
sure, but this "SysMsg" by no means needs to correspond to the Class - it can just be an arbitrary identifying string.
This has been fixed in later versions. A class cast exception is reported with both class names.