struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Hill <>
Subject Re: Here's a question for yous...
Date Tue, 01 Mar 2005 06:08:10 GMT
Dunno about struts 1.2, but in 1.1 there wasn't an option for it. That 
said, it would probably take you only a few minutes to override the 
request processor to do it.

indeed I recall having done that before myself a year or two back
ahh... here we go -

protected void processPopulate(HttpServletRequest request,
                                    HttpServletResponse response,
                                    ActionForm form,
                                    ActionMapping mapping)
         throws ServletException
     if(form != null)
       if(mapping instanceof GTActionMapping)
         if( ((GTActionMapping)mapping).isPopulate() == false )
       return; //No form to populate

And it uses an ActionMapping subclass that supports the populate 
property of course....

Frank W. Zammetti wrote:
> It is of course possible to turn of form validation on a per-mapping 
> basis... Is it possible to turn off auto-population?
> It's never come up for me before a few minutes ago... I'm doing a file 
> upload project, and when I upload the files I'd like an ActionForm to be 
> created but NOT populated with anything... I want to use it simply to 
> return some status information back to the view.  I can think of about 5 
> other ways to accomplish this, but simply turning off auto-population 
> would be the easiest.
> I don't see a way to do it... am I missing something?  Thanks!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message