title: Struts2 iterator tag null object does not throw exception
body: <p>I am in a process of migrating struts 1 to struts 2.X</p>
  
  <p>Have attribute set in request scope and I am accesing in my jsp as below in struts 1. when bean is not in scope i get ".servlet.jsp.JspException: Cannot find bean cat in any scope"</p>
  
  <pre><code>&lt;div class="titlePageCatalog"&gt;&lt;bean:write name="desccategory" property="name" /&gt;&lt;/div&gt;
  </code></pre>
  
  <p>And in struts 2 i modified to</p>
  
  <pre><code>&lt;s:iterator value="#request.cat"&gt;
  &lt;div class="titlePageCatalog"&gt;  &lt;s:property value = "name"/&gt;&lt;/div&gt;
  &lt;/s:iterator&gt;
  </code></pre>
  
  <p>But in struts 2 i am not getting any exception. Basically i need that exception to be thrown when cat is not set. </p>
  
  <p>Can anyone please suggest how to get an jspexception when its not set</p>