What are the difference in headers in the two requests?

Chuck


On Jan 28, 2008, at 4:00 PM, Jake MacMullin wrote:

Hi All,

I think I've found a bug - and before I submit a bug report I thought I'd check to see if anyone else has encountered it and if there are any work-arounds.

It seems that WOForms with an enctype of "multipart/form-data" are broken in WebObjects 5.4 when you're deploying an application as a WAR.

I've got the following simple component:

HTML:

                        <wo:WOForm>
                                <wo:WOTextField value = 
"[message]"></wo:WOTextField>
                                <wo:WOSubmitButton action = 
"[sayHello]"></wo:WOSubmitButton>
                        </wo:WOForm>
                        
                        <wo:WOForm enctype = "multipart/form-data">
                                <wo:WOTextField value = 
"[message]"></wo:WOTextField>
                                <wo:WOSubmitButton action = 
"[sayHello]"></wo:WOSubmitButton>
                        </wo:WOForm>
                        
                        <wo:WOString value = "[message]"></wo:WOString>


Java:

        public String message;

        public Main(WOContext context) {
                super(context);
        }
        
        public WOComponent sayHello() {
                message = "hello, " + message + "!";
                return(this);
        }

If I build my application as a .woa everything works as I'd expect it to, however, if I build my application as a WAR then the form with the enctype of "multipart/form-data" fails. My instance variable does not get assigned a value - but remains null.

This is obviously a problem as it means that WOFileUpload doesn't work with WO 5.4 applications built as a WAR. Anyone else encountered this? Any idea of a work-around?

Regards,

Jake
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net

This email sent to [EMAIL PROTECTED]


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to