My thanks to all of the respondents.  Yep, my problem seems to be
equal parts my own confusion, and (possibly) a bug in jserv.
Still, I have a couple of remaining questions:

   Jason says (about using only the MultipartRequest class, and
   avoiding the embedded HttpServletRequest object)

       It's similar to when you wrap an InputStream with a
       BufferedInputStream: you have to be careful NOT to access the
       underlying InputStream directly.

I probably seem ungrateful -- here I am still carping and grousing though
happily using the Jason's class -- but the MultipartRequest class does
not reimplement -all- of the public methods of HttpServletRequest, while
BufferedInputStream appears to replicate all of the methods in
InputStream.  For instance, if I need to get the HttpSession I
have to call that method on the HttpServletRequest object.  This is
pretty important, I think: the session provides a great way to track
security (has this user already logged in?) and security is a
real concern when it comes to file uploads.

Fortunately, HttpServletRequest.getSession does work, and does
so without (in jserv) corrupting the request and making it
unusable to MultipartRequest.

So what's my beef?  Just that small one (remember: I am a happy
customer here! I have the use of some fine code for no money) that if
the recommened practice is to avoid all calls on the
HttpServletRequest, including any calls before the MultipartRequest is
constructed, then shouldn't the interface to MultipartRequest mimic
HttpServletRequest a bit more closely?

And while I'm in my pipe dream: are there good reasons not to give
MulitpartRequest an HttpServletRequest interface explicitly?  If not,
and if it implemented HttpServletRequest, I could pass it to utility
functions which make certain checks on the object (session state, in
particular).

These are small quibbles, and (as before) may reflect my
own misconceptions.  Thanks to all.

 - Paul

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to