|
From: Keith D. <ke...@in...> - 2006-03-29 13:16:22
|
Serge,
The first issue (array request params) has been fixed for 1.0 RC1 nightly.
The second issue (samples) is still outstanding. Can you create a JIRA?
Thanks,
Keith
-----Original Message-----
From: spr...@li...
[mailto:spr...@li...] On Behalf Of
Serge Bogatyrjov
Sent: Wednesday, March 29, 2006 7:17 AM
To: spr...@li...
Subject: [Springframework-developer] webflow, jetty request parameters
Hi,
I am using jetty6. Jetty particular request parameters processing make it
impossible to use webflow with jetty. I do not sure this container to do
things in right way. But I have found we can make the webflow to run with
jetty.
The weak spot in webflow is
'HttpServletRequestParameterMap.getAttribute(String
key)' method. It makes the following call:
request.getParameterValues(key);
Jetty returns String[0] for a unknown parameter. But this case is not
provided.
This is original code:
if (parameters == null) {
return null;
} else if (parameters.length == 1) {
return parameters[0];
} else {
return parameters;
}
Here is my variant:
if (parameters == null) {
return null;
} else if (parameters.length == 0) {
return null;
} else if (parameters.length == 1) {
return parameters[0];
} else {
return parameters;
}
I have found another small problem with webflow samples. All samples
contains invalid value for a 'webAppRootKey' context parameter in web.xml.
For example, in the sample phonebook the parameter value is
"phonebook.root", but the valid value is "swf-phonebook.root", because
assebly artifact is "swf-phonebook.war".
Serge Bogatyrjov.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|