David Durham wrote:
Tom Bednarz wrote:
I think the validator fires too early, but probably I am doing
something wrong. Maybe somebody can hp!
Basically, you need 2 actions, one to populate the form and one to
change the personal data.
David,
This is EXACTLY what I like to AVOID! With this concept I have to write
dozends of useless action classes!
In my Action class I did:
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
{
ActionForward af = null;
......
String operation = request.getParameter("operation");
.....
if (operation != null &&
operation.compareToIgnoreCase("update") == 0)
{
..... Perform update operation here
}
else // showData
{
.... Populate form here
}
return (new ActionForward("/showPersonalData.do"));
}
The surprising thing (at least for me...) is, that when running in the
debugger, execute method is NEVER called (does not stop at any
breakpoint) !!!
Is there no more intelligent way then creating lots of actions?? Maybe
this is a motivation to move to JSF!!
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]