jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abey Mullassery" <a...@mullassery.com>
Subject RE: Input Taglib: Form Tag for receiving "multipart/form-data"
Date Thu, 07 Mar 2002 11:58:32 GMT

I have developed a tag which puts the data from a multipart form, into a
Hashtable that is put in the request context. However it is not easy to
retrieve the values from a hashtable as it is with the request object. It
involves a lot of casting and checking...

So do you think it will be better to store it as a data object which will
return the values to getParameter("stringName") calls? This would make it
easier. Data from files uploaded will be returned as byte arrays.

Any thoughts on this?

Abey M. Mullassery
e: abey@mullassery.com
w: http://www.Mullassery.com
Live; Don't just exist.

> -----Original Message-----
> From: Shawn Bayern [mailto:bayern@essentially.net]
> Sent: Thursday, February 07, 2002 7:35 PM
> To: Tag Libraries Developers List
> Subject: Re: Input Taglib: Form Tag for receiving "multipart/form-data"
> On Thu, 7 Feb 2002, Abey Mullassery wrote:
> > 1. Since retrieving Form field data from a Form with
> > enctype="multipart/form-data" (for file uploading) is not straight
> > forward as in the normal case, I think it would be nice to have a
> > custom tag for it.
> >
> > I did not find such a tag in the input Taglib. I have worked a bit on
> > it and would like to contribute it.
> Interesting idea!  I've thought about providing a library to do this, but
> it didn't even occur to me to add it to the 'input' taglib.  How exactly
> would it work?  It's clear what it would *display*, but what would happen
> when the resulting file were actually uploaded?
> > 2. An SUBMIT custom tag which can be used to add a "submit button" or
> > a "image" to submit the Form can also be added.
> >
> > Please let me know what you think.
> Is there any advantage to making this a dynamic tag?  We could always make
> the Input taglib have tags for every potential form element, but its goal
> initially was to focus on input and leave form design up to the target
> markup language.  But I'm all for any improvements; I haven't touched the
> Input taglib for some time, so I'm happy to pass the torch if you want
> to maintain it more actively.
> Best,
> Shawn
> --
> To unsubscribe, e-mail:
> <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:taglibs-dev-help@jakarta.apache.org>

To unsubscribe, e-mail:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>

View raw message