-
Interceptors in Struts2
Hi,
I want to set an attribute in an interceptor with the scope of request to access that in JSP. The follwing code I have used, but that attribute is not getting in JSP.
Interceptor code:
Code:
HttpServletRequest request = ServletActionContext.getRequest();
request.setAttribute("permissionsList", permissionsList);
In the above code permissionsList is fetching from a Map, which is in application scope.
JSP code:
Code:
<s:iterator value="#request.permissionsList">
</s:iterator>
Expecting suggestions in this regard.
Niranjan