Information about IP and GET variables [message #92321] |
Sat, 07 June 2008 10:14  |
Eclipse User |
|
|
|
Hi,
I have two problems:
1. I need the IP of the user
2. I want to include additional *variable* information in the URL passed to
the RAP site (like which words to highlight
....rap?startup=default&Highlight=test). How can I access such information
from within the RAP?
Thanks in advance,
Torge Kummerow
|
|
|
Re: Information about IP and GET variables [message #92367 is a reply to message #92321] |
Mon, 09 June 2008 02:13  |
Eclipse User |
|
|
|
Hi Torge,
you can use the servlet API to get these information, e.g.
RWT.getRequest().getParameterMap() for query url strings and
RWT.getRequest().getRemoteAddr() for the user IP.
However, the latter doesn't work in all scenarios, e.g. if you are
behind a proxy.
Hope that helps,
Stefan.
Torge Kummerow schrieb:
> Hi,
>
> I have two problems:
>
> 1. I need the IP of the user
>
> 2. I want to include additional *variable* information in the URL passed
> to the RAP site (like which words to highlight
> ...rap?startup=default&Highlight=test). How can I access such
> information from within the RAP?
>
> Thanks in advance,
> Torge Kummerow
|
|
|
Powered by
FUDForum. Page generated in 0.08969 seconds