Skip to main content

Posts

Showing posts with the label useBean

Attempted a bean operation on a null object

We might get this error when we try to use a bean somewhere in our JSP! In such a case you can: You could have such error when using jsp:setProperty or jsp:getProperty on a bean which does not exist. For example, if the "name" attribute does not match the "id" attribute of Thus check the bean name and id you are using in different places...may be you are not using the same name everywhere!