"Hogan, John" wrote:
> Joe, Ted,
> Your proposed solutions worked well. Thanks.
Here's a simple trick for returning a blank ActionForm for new
data-entry.
Define a generic "Input" action, that does nothing but
return (new ActionForward(mapping.getInput()));
Then whenever you need to get a blank ActionForm, of any type, just
create a mapping to the generic Action, specifying a different input
property:
<action path="/bid/Input"
type="org.wxxi.gavel.lib.Input"
name="bidForm"
scope="request"
validate="false"
input="/WEB-INF/jsp/bid/Form.jsp">
</action>
Or,
<action path="/donor/Input"
type="org.wxxi.gavel.lib.Input"
name="donorForm"
scope="request"
validate="false"
input="/WEB-INF/jsp/donor/Form.jsp">
</action>
This way you don't have to check for an add request for each form type.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/