I'm obviously not understanding something.
I've got a requirement to initially display a blank form with some
checkboxes checked. What I have is a TakeoverAuditAssignmentForm with a
setDefaults() method that sets the checkboxes to true. My NewDealerAction
calls the setDefault() method then gets the mapping which forwards to the
jsp. When the screen displays the boxes aren't checked.
I didn't put the logic in the reset() because I only want this to happen
the first time. Can someone tell me what I'm missing or a better way to
handle this?
action path="/newDealer"
type="com.dcs.cfc.aim.action.NewDealerAction"
name="takeoverAuditAssignmentForm"
scope="session"
forward name="success" path=
"/WEB-INF/jsp/takeoverAuditAssignmentLayout.jsp"
forward name="failure" path=
"/WEB-INF/jsp/auditAssignmentException.jsp"
action
(I took the '<' & '>' off the tags intentionally for the email)
NewDealerAction -
TakeoverAuditAssignmentForm toForm =
(TakeoverAuditAssignmentForm) form;
toForm.setDefaults(request);
System.err.println("Checkboxes are : " +
toForm.getPhysicalAudit());
return mapping.findForward(Constants.SUCCESS);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]