FYI,

This was logged as an Enhancement request in the Apache Bug Database--
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2108

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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
crazy
> idea.
>
> Thanks,
>     Erik
>
>
>

Reply via email to