Hi,

How can I get hold of a MultipartHttpServletRequest in a generator?

If I do this...

final WebApplicationContext parentContext = WebAppContextUtils.getCurrentWebApplicationContext(); final ProcessInfoProvider infoProvider = (ProcessInfoProvider) parentContext.getBean(ProcessInfoProvider.ROLE);
HttpServletRequest request = infoProvider.getRequest();
MultipartHttpServletRequest mpr = (MultipartHttpServletRequest) request;

I get the following error when the final line is executed...

java.lang.ClassCastException: $Proxy13

Eclipse debugger shows that request is an instance of MultipartHttpServletRequest.

What's the secret?

Cheers,

Robin

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to