ELResolver cannot handle a null base Object with identifier

30-04-2015
ignore="true" is used when an object can be null:
<put-attribute name="displayedTitleShortInfo" cascade="true" expression="${problem.title}"/>
<h1><tiles:insertAttribute name="displayedTitleShortInfo"  ignore="true"/></h1>
As seen above, we defined Tiles tag named as displayedTitleShortInfo. The expression attribute of this tag contains jsp expression. When problem variable is null, we encounter runtime-exception: ELResolver cannot handle a null base Object with identifier

To solve this problem, ignore="true" attribute must be used.

© 2019 All rights reserved. Codesenior.COM