multipart/form-data WOForm broken in 5.4 when deploying as a WAR?
multipart/form-data WOForm broken in 5.4 when deploying as a WAR?
- Subject: multipart/form-data WOForm broken in 5.4 when deploying as a WAR?
- From: Jake MacMullin <email@hidden>
- Date: Tue, 29 Jan 2008 11:00:55 +1100
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:
This email sent to email@hidden