Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 533457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:30:38+00:00 2026-05-13T09:30:38+00:00

I created a webpage contains more than 10 links . is it possible to

  • 0

I created a webpage contains more than 10 links . is it possible to store the clicked urls or visited in my database or file . I have developed webpage using servlet. It is just a page with 10 links.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T09:30:38+00:00Added an answer on May 13, 2026 at 9:30 am

    Capturing simple hits on your own site/servlet is easy as pie – if you just want to know the URLs visited, you can almost always set your webserver to record this to a logfile. (Then if desired you can parse and insert this into your database).

    Capturing outbound links requires a little more works, and there are many ways to go about this, with the best depending on your specific requirements (complexity of URLs/methods, complexity of alternative link attributes such as target, desired robustness, desired performance, desired comprehensiveness, etc.).

    One solution as specified above is changing all outbound links into references to a redirection page on your own site, with the target as a parameter. Then in your typical webserver logs you’ll see a hit something like http://example.com/redir.html?target=http%3A%2F%2Fwww.bbc.co.uk%2Fnews, from which you can easily parse the target URL.

    Another would involve firing a manual request to your server when the link is clicked (typically a 1×1 image), to which you can append any query parameters you like and later extract them from your logfile. This may or may not involve interrupting the click action with a javascript event listener and then retriggering the page change later on, depending on exactly how you’re making the request as often this will lead to a race condition if not explicitly handled.

    All of the options above that make explicit requests for the purpose of creating a line in the logfiles, could instead make a request to a particular page (e.g. a JSP) that writes entries directly into your database, if required (though ideally this would still keep some kind of log to allow for retrying failed inserts).

    Having worked in web analytics for several years, I can tell you that it’s surprising just how many different situations there are to consider if you want to capture as much accurate information as possible. If this is just for a toy website for your own edification then just about any technique will likely be acceptable, but as soon as you start to put any weight behind the figures you really need to care about the things you never considered. There’s a reason why a market exists for several relatively expensive web analytics software packages… 🙂

    Edit: As prakash’s comment implies, my recommendation would be to inspect the range of free web analytics tools already out there and integrate one if you actually care about the results. If you’re just doing this out of curiousity, or as a throwaway low-importance project then by all means get your hands dirty.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a Webpage which will post as post method..not as get method.
I have a very AJAX-ish listing webpage created using Codeigniter where I want registered
I am experiencing a minor difficulty. I have a webpage, and have created a
We have a webpage that contains three grids full of data. The grids are
I created a cab file that contains my activex using CABARC.exe. I also created
I have a webpage which contains about 20 - 50 dynamic images (images served
My colleagues have create a website and there is a webpage which contains a
I am new to JavaScript. I created the webpage linked below as an exercise
I created an application that parses content of secured areas of one webpage after
I have created a web page (ASP.NET) that includes a stylesheet to mimic Dynamics

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.