Im setting a number of params in a URL (page.jsp?param1=value¶m2=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.
精彩评论