Yes, injectcting servlet request, or even better, the getRemoteAddr()
itself thru Hivemind works very well for me now. Thank you very much
guys. And since I'm using Tap4 & JDK 1.5 the last example is both
clean, and a right way to go.
Thanks Again!
On 2/27/06, Raul Raja Martinez <[EMAIL PROTECTED]> wrote:
> @InjectObject("service-property:tapestry.globals.HttpServletRequest:remoteAddr")
> public abstract String getRemoteAddr()
>
>
> or
>
>
> @InjectObject("service:tapestry.globals.HttpServletRequest")
> public abstract HttpServletRequest getServletRequest();
>
> and then do whatever with the HttpServletRequest
>
>
> best regards.
>
> Raul Raja.
>
> Lindsay Steele wrote:
> > getRequestCycle().getRequestContext().getRequest().getRemoteAddr();
> >
> > works for me - but throws deprecation warnings. Happy to see if anyone
> > suggests something better.
> >
> > Adam Zimowski wrote:
> >> Mornin'
> >>
> >> I need to obtain IP address from the requester of the page. With
> >> Servlet API I'd use HttpServletRequest getRemoteAddr().
> >>
> >> I checked WebRequest interface in Tapestry and do not see the
> >> equivalent. Anyone knows how to get this information?
> >>
> >> Thank You
> >>
> >> ---------------------------------------------------------------------
> >> 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]
> >
> >
>
>
> ---------------------------------------------------------------------
> 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]