Hi All:
I have defined a Variable using <bean:define> Tag that is printed in the next Line using a Logic:notEmpty check. But the problem is that it will print anyhow whether it is empty or Not. And the resulting print of "null" in the JSP is unacceptable. Here is my Definition <bean:define id="noCourseChosenErrorMessage"> <%=session.getAttribute("NoCourseChosen") %> </bean:define> Here is the Logic:notEMpty Tag <logic:notEmpty name="noCourseChosenErrorMessage"> <p style="color:red"> <bean:write name="noCourseChosenErrorMessage"/> <br></p> </logic:notEmpty> If "noCourseChosenErrorMessage" is null it still gets printed. Why ? Is logic:notEMpty unable to detect it whereas bean:write can. If so why. Thanks. CHetan