2016-10-06 9:58 GMT+02:00 Greg Huber <[email protected]>: > 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: [email protected] For additional commands, e-mail: [email protected]
