You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Senthil Rajagopal <se...@cscindia.com> on 2003/03/31 16:41:25 UTC
request.isUserInRole() with mapping.findForward()
HI,
I am using mapping.findForward("newPage") to navigate to a new page.
In the new page, I use <logic:present role="myRole">...</logic:present>.
Though the user is a valid user with myRole defined for the user, the <logic:present role="myRole">...</logic:present> returns falls.
For a direct get operation the <logic:present role="myRole">...</logic:present> works fine.
Other observations:
request.getUserPrincipal() returns null in the "newPage".
Please help.
Thanks in advance and regards,
Senthil Rajagopal,
CSC India