Hello, I've been working on getting login authentication (http://www.nabble.com/T5-how-to-control-login-state-tf4744201.html) to <http://www.nabble.com/T5-how-to-control-login-state-tf4744201.html) to> work for my application and have hit a roadblock. How do I retrieve the remote IP address of the current request while I am in a Dispatcher or RequestFilter? I'm using Chris Lewis's example as a starting point. http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher2 My UserPermissions Object is currently composed of a User member. A User object contains the login name, password, ipaddress and various other information. The IP address is currently only available via a HttpServletRequest Object. I tried using the method explained in the wiki on how to obtain the HttpServletRequest using RequestGlobals, but that didn't seem to work. What I think I need to do is pass in a request object to the UserPermissions constructor so that I can obtain the IP address from that request. Using RequestGlobals my request object is set to null. btw, I looked at https://issues.apache.org/jira/browse/TAPESTRY-1272 as well as the thread http://www.nabble.com/-jira--Created%3A-%28TAPESTRY-1272%29-Get-remote-c lient-IP-address-through-Request-wrapper-tf3234980.html#a8989668 and I couldn't get Massimo's example to work with the annotation @Inject("infrastructure:Request") to work properly. Eclipse complains about an undefined attribute value for the @Inject annotation. His demo seems promising but I am apparently missing a definition somewhere.
Any Ideas? --Michael