struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Levi Cook" <>
Subject Re: FormTag and ActionForm.reset
Date Mon, 16 Jul 2001 05:11:15 GMT

This was logged as an Enhancement request in the Apache Bug Database--

I'm note sure of its status, but calling reset() on initialization seems
reasonable enough to me.

On the other hand, most ActionForms aren't designed for reuese (& probably
shouldn't be). So it should be quite safe to make this call from your child
ActionForms constructor.. (Make sure its a no-arg constructor too :)

-- Levi

----- Original Message -----
From: "Erik Hatcher" <>
To: <>
Sent: Sunday, July 15, 2001 6:01 PM
Subject: FormTag and ActionForm.reset

> Struts-Dev,
> Would it make sense in org.apache.struts.taglib.html.FormTag where the
> ActionForm is instantiated for a call to reset be made (in the same place
> where setServlet is called in doStartTag)??
> It seems it would be handy to have reset called immediately after
> instantiation in order for the ActionForm to have a chance to use request
> variables to initialize itself.
> Let me know if I'm off-base and why this might not make sense if its a
> idea.
> Thanks,
>     Erik

View raw message