开发者

spring portlet MVC and request params

开发者 https://www.devze.com 2022-12-11 15:19 出处:网络
Im setting a number of params in a URL (page.jsp?param1=value&param2=value2). When the url is requested it passes control to a Controller class, extending AbstractConrtoller , whi开发者_如何学Pyth

Im setting a number of params in a URL (page.jsp?param1=value&param2=value2). When the url is requested it passes control to a Controller class, extending AbstractConrtoller , whi开发者_如何学Pythonch overrides handleRenderRequestInternal to do my logic. Inside here i try to retrieve the request attributes using request.getAttribute and getParameter however neither return a value.

Any ideas how i can access the params?

Do i need to get an instance of the HttpSession and then make the lookup?


The problem could be due to a redirected request (forward and include won't change the parameter). A multi-part request (i.e. file upload request) would be without parameters in the request, too.

Request parameter will not end up in the Session.

0

精彩评论

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