wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts reset() not being called... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts reset() not being called..." Watch "Struts reset() not being called..." New topic
Author

Struts reset() not being called...

Andy Metcalfe
Greenhorn

Joined: Nov 23, 2004
Posts: 5
I'm having a problem where the reset(ActionMapping mapping,javax.servlet.ServletRequest request) method on my ActionForm is not being called. This is frustrating my attempts to use html:checkboxes with session-scope forms.

Here's my form:



and here's the corresponding entry from struts-config.xml


I know the method isn't being called because I don't see the System.out printing.

Any thoughts?

Thanks,

_Am

[ November 23, 2004: Message edited by: Andy Metcalfe ]
[ November 23, 2004: Message edited by: Andy Metcalfe ]
Anand Gondhiya
Ranch Hand

Joined: Feb 24, 2004
Posts: 155
try using this form of reset !

reset(ActionMapping mapping, HttpServletRequest request). i.e change your "request" objects's type
Andy Metcalfe
Greenhorn

Joined: Nov 23, 2004
Posts: 5
Ding! Thanks, that was it...

_Am
 
Don't get me started about those stupid light bulbs.
 
subject: Struts reset() not being called...
 
Similar Threads
Using Filters with Struts
Struts calls reset before form is submitted
ActionForm not populated/is null after mapping
FormBean reset issue
Dyna action reset method