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;
        }
      }
      super.processPopulate(request,response,form,mapping);
    }
    else
    {
      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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to