top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Tomcat: Generate static website based on user locale

+1 vote
527 views

I am trying to generate static website based on dynamic site running on tomcat so I can take some load off my app servers.

A twist here is that we are serving different pages based on user location (Application has a logic that checks user IP and display content based on user location) and wondering is there a tool like wget that also accepts any locale?

posted Jun 10, 2014 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
"like wget" wget can send arbitrary headers.

1 Answer

0 votes

If the application is looking at the user's IP and doing a geo lookup or something like that, I don't think there's much you can do short of somehow spoofing the IP of the request.

If the application looks at the headers, like the Accept-Language header, you could try setting that header with wget or curl.

answer Jun 10, 2014 by Sidharth
Similar Questions
+2 votes

I downloaded a website say "test.org" using wget utility. Now I want to deploy in Apache Tomcat 8.0 RC. That I have done it.

But I want to do in this manner that I want to access "test.org" locally from my browser as if I am browsing on the internet because links in the test.org refers to itself. Because when I click any link it goes to
Internet and not to my locally saved website.

Please help

+2 votes

I want to display a static html page to the user if he wants to access a missing application. The goal is to display this page while updating (redeploy) the application to Tomcat. If the application is available, the user must access the application.

Is there a possibility to do this?

+3 votes

How to provide a facebook icon on my website, which will link to my facebook page when someone clicks on it. same question for google+ profile.

...