struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Struts 2.5.3 & 2.3.31 ready for test
Date Thu, 06 Oct 2016 08:07:00 GMT
2016-10-06 9:58 GMT+02:00 Greg Huber <gregh3269@gmail.com>:
> Well, I will do this:
>
> String[] p = (String[]) this.params.get(key);
>         if (p != null && p.length > 0) {
>             return p[0];
>         }
>
> So if its not an string I may get a cast exception.  Are they always
> strings if its from the request?

In most cases it should be Strings but there is a case with file
upload where FileUploadInterceptors put streams into Parameters :\


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message