Ringobot log - RingoJS IRC channel: #ringojs on irc.freenode.net

2010-08-07:

[12:00] <olegp> is there some way to get at the servletcontext via JSGI env ?
[12:09] <olegp> or more specifically I need to get the servletcontextname and realpath from the context - are those available somewhere?
[12:52] <olegp> ok, question 1 solved: the contextname can be retrieved by looking at the difference between request.path and .pathInfo
[12:53] <olegp> and for #2 I guess I should be using getResource()
[12:53] <olegp> instead of trying to figure out the absolute path where the webapp is located
[13:18] <olegp> looks like getResource("./dir/file").content does the trick