title: In Struts 1.3, what's the best way for the Controller to fill the View with variables?
body: <p>I've just inherited some old Struts code.</p>
  
  <p>If Struts (1.3) follows the MVC pattern, how do the Action classes fill the View with variables to render in HTML ?</p>
  
  <p>So far, I've seen the Action classes push variables in <code>(1)</code> the HTTP request with</p>
  
  <pre><code>request.setAttribute("name", user.getName())
  </code></pre>
  
  <p><code>(2)</code> in ActionForm classes, using methods specific to the application:</p>
  
  <pre><code>UserForm form = (UserForm) actionForm;
  form.setUserName(user.getName());
  </code></pre>
  
  <p>and <code>(3)</code> a requestScope variable, that I see in the JSP layer (the view uses JSP), but I can't see in the Action classes.</p>
  
  <pre><code>&lt;p style='color: red'&gt;&lt;c:out value='${requestScope.userName}' /&gt;&lt;/p&gt;
  </code></pre>
  
  <p>So, which of these is considered old-school, and what's the recommended way of pushing variables in the View in Struts ?</p>