Johan,

thanks a lot. For anyone who was following this, here's how I'm getting 
the IP of the client now:

HttpServletRequest httpRequest = 
((ServletWebRequest)getRequest()).getHttpServletRequest();
   
System.out.println(httpRequest.getRemoteAddr());

- Johannes

Johan Compagner wrote:

> yes just get the real http request (just cast the wicket.Request to 
> WebRequest and get the HttpRequest from it)
>
> On 7/5/06, *Johannes Fahrenkrug* < [EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Thank you very much, Johan. I failed to mention that I'm still on
>     Wicket-1.1.1. Is there a way to do this with
>     Wicket-1.1.1?
>
>     - Johannes
>
>     Johan Compagner wrote:
>
>     > remote address can be get from the http request (of the WebRequest
>     > from the RequestCycle)
>     > The snoop servlet does this
>     >
>     >
>     
> http://www.rawbw.com/~davidm/tini/TiniHttpServerDemo/servlet/SnoopServlet.html
>     
> <http://www.rawbw.com/%7Edavidm/tini/TiniHttpServerDemo/servlet/SnoopServlet.html>
>
>     >
>     
> <http://www.rawbw.com/%7Edavidm/tini/TiniHttpServerDemo/servlet/SnoopServlet.html>
>     >
>     >
>     >
>     > On 7/4/06, *Johannes Fahrenkrug* < [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>
>     > <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>> wrote:
>     >
>     >     Johan,
>     >
>     >     Thank you. Actually what I really need to know is this: How
>     do I find
>     >     out what IP the request comes from?
>     >     Does only Jetty "know" the http request details or are they also
>     >     accessible from "within" Wicket?
>     >
>     >     - Johannes
>     >
>     >     Johan Compagner wrote:
>     >
>     >     > if you set different pages as a response page  or set a
>     >     different style
>     >     > both dependend on the ip you get then yes.
>     >     >
>     >     > johan
>     >     >
>     >     >
>     >     > On 7/4/06, *Johannes Fahrenkrug * <[EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>
>     >     <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
>     >     > <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>     <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>>> wrote:
>     >     >
>     >     >     Hi,
>     >     >
>     >     >     is it possible to show different pages dependent on
>     what IP the
>     >     >     request
>     >     >     comes from?
>     >     >
>     >     >     - Johannes
>     >     >
>     >     >     Using Tomcat but need to do more? Need to support web
>     services,
>     >     >     security?
>     >     >     Get stuff done quickly with pre-integrated technology to
>     >     make your
>     >     >     job easier
>     >     >     Download IBM WebSphere Application Server v.1.0.1 based on
>     >     Apache
>     >     >     Geronimo
>     >     >
>     >    
>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>     >    
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     
> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>>
>     >     >
>     >    
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>     >     <
>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     
> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>>>
>     >     >     _______________________________________________
>     >     >     Wicket-user mailing list
>     >     >     [email protected]
>     <mailto:[email protected]>
>     >     <mailto:[email protected]
>     <mailto:[email protected]>>
>     >     >     <mailto: [email protected]
>     <mailto:[email protected]>
>     >     <mailto:[email protected]
>     <mailto:[email protected]>>>
>     >     >     https://lists.sourceforge.net/lists/listinfo/wicket-user
>     >     <https://lists.sourceforge.net/lists/listinfo/wicket-user
>     <https://lists.sourceforge.net/lists/listinfo/wicket-user>>
>     >     >
>     >     >
>     >    
>     >------------------------------------------------------------------------
>     >     >
>     >     >Using Tomcat but need to do more? Need to support web
>     services,
>     >     security?
>     >     >Get stuff done quickly with pre-integrated technology to make
>     >     your job easier
>     >     >Download IBM WebSphere Application Server v.1.0.1 based on
>     Apache
>     >     Geronimo
>     >    
>     >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>     >     <
>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     
> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>>
>     >     >
>     >     >
>     >    
>     >------------------------------------------------------------------------
>     >     >
>     >     >_______________________________________________
>     >     >Wicket-user mailing list
>     >     > [email protected]
>     <mailto:[email protected]>
>     >     <mailto: [email protected]
>     <mailto:[email protected]>>
>     >     >https://lists.sourceforge.net/lists/listinfo/wicket-user
>     <https://lists.sourceforge.net/lists/listinfo/wicket-user>
>     >     >
>     >     >
>     >
>     >
>     >     Using Tomcat but need to do more? Need to support web services,
>     >     security?
>     >     Get stuff done quickly with pre-integrated technology to
>     make your
>     >     job easier
>     >     Download IBM WebSphere Application Server v.1.0.1 based on
>     Apache
>     >     Geronimo
>     >    
>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>     >    
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     
> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>>
>     >     _______________________________________________
>     >     Wicket-user mailing list
>     >     [email protected]
>     <mailto:[email protected]>
>     >     <mailto: [email protected]
>     <mailto:[email protected]>>
>     >     https://lists.sourceforge.net/lists/listinfo/wicket-user
>     <https://lists.sourceforge.net/lists/listinfo/wicket-user>
>     >
>     >
>     >------------------------------------------------------------------------
>     >
>     >Using Tomcat but need to do more? Need to support web services,
>     security?
>     >Get stuff done quickly with pre-integrated technology to make
>     your job easier
>     >Download IBM WebSphere Application Server v.1.0.1 based on Apache
>     Geronimo
>     >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>     >
>     >
>     >------------------------------------------------------------------------
>     >
>     >_______________________________________________
>     >Wicket-user mailing list
>     > [email protected]
>     <mailto:[email protected]>
>     >https://lists.sourceforge.net/lists/listinfo/wicket-user
>     >
>     >
>
>
>     Using Tomcat but need to do more? Need to support web services,
>     security?
>     Get stuff done quickly with pre-integrated technology to make your
>     job easier
>     Download IBM WebSphere Application Server v.1.0.1 based on Apache
>     Geronimo
>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>     _______________________________________________
>     Wicket-user mailing list
>     [email protected]
>     <mailto:[email protected]>
>     https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>------------------------------------------------------------------------
>
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job easier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Wicket-user mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/wicket-user
>  
>


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to