You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Robert Upshall <ru...@johnson.ca> on 2001/07/12 13:44:46 UTC

Code question?

This is might not be the perfect place for this question but it involves
Servlet programming with Jakarta so its a close fit.  I hope somebody might
take the time to anwser.

I am trying to create a web access counter.  I have it created and working
with a small issue,  when I create the counter file:
  File ctrFile = new File("count");
it dosn't work, I need to use,
  File ctrFile = new File("web-apps/myapp/count");
This work fine without any problems.

I have the counter Servlet if a taglib now and its called like so:
    <mytaglib:counter fileName="web-apps/myapp/count"/>
But I wated to make it a little more dynamic and auto detect the curent
directory of the jsp using the tag.

Could sompody tell me really quick if/how to get this path?

Robert