Well,

If you're in a JSP, you can get it direct from the request, even using EL or
using expressions.
If you're in a action you may want take a look at the documentation.
Specific in the part of FAQ -> How To.
You'll find that you can get the request object by implementing the
interface ServletRequestAware or using the code
ActionContext.getContext().getRequest().

Using the interface is a better approach. Make your choice. :-)

Regards,

Felipe


Marcin Orlinski wrote:
> 
> Hello all
> 
> I have a question about struts2 tags and get information from
> HttServletRequest.
> 
> Does simple method exist to use request.getRemoteUser() and
> request.isUserInRole() in (for example) <s:if test=""> ?
> 
> Best regards
> Marcin Orlinski
> 

-- 
View this message in context: 
http://www.nabble.com/-s2--use-remoteUser-with-struts-tags-tf3656482.html#a10226373
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to