开发者

HttpServletRequest object in Spring webflow?

开发者 https://www.devze.com 2023-02-06 02:32 出处:网络
How to get HttpServletRequest 开发者_运维知识库object in FlowController? I am trying to retrieve request object from getNativeRequest() method,But it is not giving HttpServletRequest object.

How to get HttpServletRequest 开发者_运维知识库object in FlowController?

I am trying to retrieve request object from getNativeRequest() method,But it is not giving HttpServletRequest object.

(HttpServletRequest)RequestContextHolder.getRequestContext().getExternalContext().getNativeRequest()  

I followed above approach, It's returning SRTServletRequest object.


Correct me if I'm wrong, but SRTServletRequest implements HttpServletRequest, so you should just be able to cast it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号