Javabean « Message « JSP-Servlet Q&A





1. Java bean error message    coderanch.com

property and property2 are supposed to be private instances variables in your bean. Typically: private String property = ""; private String property2 = ""; You are referencing bean properties in your JSP that do not exist in the bean. The following will work: public class NewBean { private String property = ""; private String property2 = ""; /** Creates new SampleBean ...

2. Getting error message using JavaBean    coderanch.com

Remember, the EL wasn't introduced just to be a one-to-one replacement for Java code in a JSP -- that would have been senseless. Rather, the EL is specifically designed to help you do the things that you should be doing in JSP pages, and to prevent you from doing what you shouldn't. It requires a little bit of a change in ...