If I have this code, which appears to be good practice, in the beginning 
of my pre-action's execute() method:

   if (form == null) {
      form = new SomeForm();
      if ("request".equals(mapping.getScope())) {
         request.setAttribute(mapping.getAttribute(), form);
      }
      else {
         request.getSession().setAttribute(mapping.getAttribute(), form);
      }
   }
   SomeForm myForm = (SomeForm)form;
   /* populate form values ...  */

Do I also need to use the following line at the end (after form 
population), or is this basically accomplishing the same as the above? 

   request.setAttribute(mapping.getAttribute(), myForm);


Thanks,
Susan Bradeen

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to