开发者

spring portlet MVC and request params

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜