Martin Cooper wrote:

You already have two options - use what Struts provides, or disable
that and provide your own. Why would you want to bloat Struts with yet
another option?

--
Martin Cooper


I will assume, and rightly so, that this is a serious statement.

There are two parts to an answer:

Part One

I am of the opinion that Struts should allow people choices rather than dictate choices which are not part of the sort of framework it provides. Ideally, I would see a situation where the interface was all that was provided and any upload solution would be part of an extension that was optional, but not required. This would not "bloat" but would diminish the code. Further, this would decouple disparate functions from one another without limiting options.

Part Two

I like the Struts framework and would like to use ActionForm with multipart requests.

What about my suggestion?

Michael McGrady


On Mon, 04 Oct 2004 21:49:35 -0700, Michael McGrady
<[EMAIL PROTECTED]> wrote:


Is there a way that it would make sense in the future to allow
developers using Struts to specify their own interface for multipart
request handlers?  This is probably a stupid suggestion but couldn't
Struts leave the interface at something like:

  public interface MultipartRequestHandler
  {

      /**
        * After constructed, this is the first method called on
        * by ActionServlet.  Use this method for all your
        * data-parsing of the ServletInputStream in the request
        *
        * @exception ServletException thrown if something goes wrong
        */
      public void handleRequest(HttpServletRequest request)
          throws ServletException;
  }

This would not, would it (?), keep people or Struts developers from
putting in their own solution but yet would leave the way clear for
other developers to use their solutions while keeping ActionForm in the
mix?  Or, am I making a dreadful mistake here?

Michael McGrady





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]









Reply via email to