Results 1 to 3 of 3
Thread: JSP Help
- 12-01-2010, 03:02 PM #1
Senior Member
- Join Date
- Mar 2010
- Location
- Manila, Philippines
- Posts
- 257
- Rep Power
- 4
JSP Help
Greetings,
I am developing a web application using JSP.
I was wondering if JSP could trace your IP in WhatIsMyIP and get the IPv4 address when accessing the web application.
Also, could a JSP prompt a JavaSE Application the addresses?
To give a clearer view, it's like a network traffic monitoring application.
Thanks,
Cyril H.Every project, package, class, method, variable, syntax, algorithm, etc.
are registered in my memory bank. Thanks to this thread.
- 12-01-2010, 03:30 PM #2
Senior Member
- Join Date
- Dec 2009
- Location
- Belgrade, Serbia
- Posts
- 364
- Rep Power
- 4
This kind of things are usually done in javax.servlet.Filter.
Use Filter to find client IP, log and perform all other things you need before starting to work with them in your app logic.
For IP you can use javax.servlet.ServletRequest:
request.getRemoteAddr(),
request.getRemoteHost()
in your filter.
What this means?Also, could a JSP prompt a JavaSE Application the addresses?
- 12-01-2010, 04:01 PM #3
Senior Member
- Join Date
- Mar 2010
- Location
- Manila, Philippines
- Posts
- 257
- Rep Power
- 4
Well it means, when you have acquired the two IP addresses.
The data won't be displayed on the page but it would be send to a Java application on the server (via Socket I guess) without opening a JApplet.
Is this possible?Every project, package, class, method, variable, syntax, algorithm, etc.
are registered in my memory bank. Thanks to this thread.


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks