Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calling a servlet before each html page request

 
davy nolan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Is it possible to have a servlet execute everytime a http request is made to the server, even if the request is for a html page.
Also if I have relative links in my html pages will the servlet still be able to obtain the complete directory structure from '/docs' down i.e. '/top/sub/subIndex.html' even if the user just requests 'subIndex.html'.
Many thanks,
Davy
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Davy,
To answer the first part... I believe it is possible, but sometimes it's overkill. Secondly, I think the relative links part should be okay.
Cheers,
Scott
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic