title: Scope attribute migration from Struts1 to Struts2
body: <p>I am migrating an application from Struts1 to Struts2. I could migrate everything except the <code>scope</code> attribute from the below action tag of the Struts1 configuration file (<code>struts-config.xml</code>).</p>
  
  <p>Struts1 configuration:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;action path="/DomainAndIPBlocking" 
          type="com.tarangtech.da.struts.action.DomainBlockedListAction" 
          name="DomainBlockForm" 
          scope="session" 
          input="/DomainAndIPBlocking.do"
          validate="false"&gt;
      &lt;forward name="success" path="/jsp/SystemAdminConsol/DomainBlocking.jsp"/&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p>Migrated Struts2 configuration:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;action name="DomainAndIPBlocking" 
          class="com.tarangtech.da.struts.action.DomainBlockedListAction" 
          method="execute"&gt;
      &lt;result name="success"&gt;/jsp/SystemAdminConsol/DomainBlocking.jsp&lt;/result&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p>The form <code>DomainBlockForm</code> has been integrated by extending the action class <code>DomainBlockedListAction</code> like this:</p>
  
  <pre><code>public class DomainBlockedListAction extends DomainBlockForm
  </code></pre>
  
  <p>It is required for me to carry forward the form values across the application. But these values are available in request/page scope only. 
  So, I should have an alternative for <strong>scope="session"</strong> from Struts1 to Struts2, so that I can carry forward all the attributes across the application.</p>