Please add a bug; WebRequest can support anything that's in both HttpServletRequest and PortletRequest ... and that includes isUserInRole(), getUserPrincipal(), etc.
On 6/23/05, Chris Conrad <[EMAIL PROTECTED]> wrote: > Hi Simeon, > > You just need to inject the tapestry.globals.HttpServletRequest > HiveMind service into your page. I'd recommend taking a look at the > services tapestry exposes, I've found a number of interesting things > you can have injected into your pages. > > --Chris > > On Jun 22, 2005, at 10:12 PM, Simeon Koptelov wrote: > > > I'm using tapestry 4.0-alpha3 and trying to wire servlet container > > (tomcat) security to it. I need to use > > HttpServletRequest.getUserPrincipal to know what user is logged in. > > But I noticed that IReqestCycle.getRequestContext() is deprecated and > > RequestContext too. As I see, WebRequest contains no methods to handle > > authentication data and no way to access HttpServletRequest. Can > > anyone tell how to retrieve logged principal? > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Howard M. Lewis Ship Independent J2EE / Open-Source Java Consultant Creator, Jakarta Tapestry Creator, Jakarta HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
