Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

link tracker  RSS feed

 
Bill Brasskey
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been given the task of developing a link tracker in JSP...does anyone know where I might find examples, sample code, etc. for this type of application?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it might help if you defined what you mean by 'link tracker'. It could be anything.
 
Bill Brasskey
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry,
we have a "go" subdirectory on our site, the purpose being to shorten long url's by redirecting from a shorter "go" url. for example, www.site.com/category/long/ugly/url would be www.site.com/go/category., where the only thing the "go" url points to is a file that redirects to the long url. I want to count the number of times a particular link is clicked, and log this info by date, type, etc.
[ July 14, 2004: Message edited by: Bill Brasskey ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Write a custom tag that you'd use instead of the <a> tag that would log every time it was invoked.
 
Bill Brasskey
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I use a custom jsp tag if the link is in a .html document, not a .jsp file?
[ July 15, 2004: Message edited by: Bill Brasskey ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, custom tags can only be using in JSPs. So make the pages JSPs instead of HTML files. No biggie.
[ July 15, 2004: Message edited by: Bear Bibeault ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!