• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: multipart/form-data WOForm broken in 5.4 when deploying as a WAR?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multipart/form-data WOForm broken in 5.4 when deploying as a WAR?


  • Subject: Re: multipart/form-data WOForm broken in 5.4 when deploying as a WAR?
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 28 Jan 2008 16:18:49 -0800

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@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net


This email sent to email@hidden


--

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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: multipart/form-data WOForm broken in 5.4 when deploying as a WAR? [WORKED AROUND]
      • From: Jake MacMullin <email@hidden>
References: 
 >multipart/form-data WOForm broken in 5.4 when deploying as a WAR? (From: Jake MacMullin <email@hidden>)

  • Prev by Date: multipart/form-data WOForm broken in 5.4 when deploying as a WAR?
  • Next by Date: WOLongResponse Page Kills Main Thread
  • Previous by thread: multipart/form-data WOForm broken in 5.4 when deploying as a WAR?
  • Next by thread: Re: multipart/form-data WOForm broken in 5.4 when deploying as a WAR? [WORKED AROUND]
  • Index(es):
    • Date
    • Thread