title: how to configure scope model driven interceptor in struts2
body: <p>how to configure scope model driven interceptor in struts2?</p>
  
  <p>I'm trying to implement scope model driven interceptor in my application, but I'm getting an error. </p>
  
  <p>Following is the error:</p>
  
  <pre><code>Caused by: Attribute "class" must be declared for element type "interceptor-ref".
  </code></pre>
  
  <p>Struts.xml code:</p>
  
  <pre><code>&lt;struts&gt;
  &lt;constant name="struts.enable.DynamicMethodInvocation" value="false" /&gt;
  &lt;constant name="struts.devMode" value="true" /&gt;
  
  &lt;package name="default" extends="struts-default"&gt;
  
      &lt;action name="dwsCreate" method="dwsCreate" class="com.struts.action.DispatchUserAction"&gt;
          &lt;interceptor-ref name="scoped-model-driven"&gt;
              &lt;param name="scope"&gt;session&lt;/param&gt;  
              &lt;param name="name"&gt;objWorksheetActionForm&lt;/param&gt;  
              &lt;param name="className"&gt;com.struts.actionform.WorksheetActionForm1&lt;/param&gt;  
          &lt;/interceptor-ref&gt;
          &lt;interceptor-ref name="basicStack" /&gt;
          &lt;result name="dwsCreate"&gt;/jsp/dwsV2/dwsCreate.jsp&lt;/result&gt;
          &lt;result name="error"&gt;/WEB-INF/jsp/SessionExpired.jsp&lt;/result&gt;
      &lt;/action&gt;
  
  
  &lt;/package&gt;
  </code></pre>
  
  <p></p>
  
  <p>What I'm doing wrong? Please help. Thanks.</p>