Hi Craig,
It seems like not all servlet engines can handle setting null attributes. Do
you think this is a bug or oversight with struts? If yes, when can we expect
a fix for it. It will be very hard to push servlet engines for this type of
a fix. Please let me know. To go arount this problem I used the Wong's
suggestion (by the way, Wong, thanks for the patch).
Thanks,
Misak
-----Original Message-----
From: Wong Kok Wai [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 07, 2000 8:21 PM
To: [EMAIL PROTECTED]
Subject: Re: FW: FormBean problem
Hi,
The exact same statement caused a null pointer
exception in ServletExec. My patch is as follow:
//>>>>>>Begin of patch<<<<<<
String multipartClass =
mapping.getMultipartClass();
if (multipartClass == null ||
multipartClass.length() == 0) {
multipartClass = this.getMultipartClass();
}
request.setAttribute("org.apache.struts.action.mapping.multipartclass",
multipartClass);
//>>>>>>End of patch<<<<<<<<
//
request.setAttribute("org.apache.struts.action.mapping.multipartclass",
//
mapping.getMultipartClass());
Hopefully this also solve your problem.
--- "Boulatian, Misak" <[EMAIL PROTECTED]> wrote:
> Hi Craig and all,
>
> After giving some thought I've tried to step through
> ActionServlet. The
> problem was found in
> processPopulate method in the lines market with '>'
> below. I've included my
> jsp, config and java programs for you to correct me
> if I am wrong. If I am
> doing something wrong then why those marked lines
> never come back (I thought
> that multipartClass is only for file uploads which I
> am not doing now).
> Please let me know if this is a bug or a
> configuration problem on my side?
>
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/