Nevermind, answering my own question ... actions in the Struts examples don't use the second line of code, so the answer is no, you don't need the two together.
Susan On 11/11/2002 01:34:16 PM "Susan Bradeen" wrote: > 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> > -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>