Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts reset() not being called...

 
Andy Metcalfe
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try using this form of reset !

reset(ActionMapping mapping, HttpServletRequest request). i.e change your "request" objects's type
 
Andy Metcalfe
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ding! Thanks, that was it...

_Am
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic