I have a web application written in Struts 2.0. As part of requirements I need show affiliate links only for users of specific location like Florida US , and another link for UK and so.
How can I get the user location in Struts 2.0 web applicaiton.
Struts has no built-in capabilities for that. I've been using the free version of MaxMind's geo database via its Java API, and been satisfied with the results. It's sometimes off, but that's just a fact of life. The premium version is more accurate than the free version, and I'm sure there are other options available.
I am not a spy. Definitely. Definitely not a spy. Not me. No way. But this tiny ad ...