If the images are physical images in the classes directory - you have a
few options.
1) At build time - move (or copy) the files from the classes directory
to somewhere more sane that the default servlet can access
2) Write a filter the detects these images that live in the classes dir,
and then forwards to the images. (You need to be careful with this one)
For # 2 - it would look something like this:
doFilter(...) {
String p = request.getServletPath();
if (p.matches("/magic_prefix/[\\w]+\\.gif$")) {
String np = request.getServletPath().replaceFirst(".+/", "");
request.getRequestDispatcher("/WEB-INF/class/more/cowbell/" + np)
.forward(request, response);
} else {
chain.doFilter(...);
}
}
-Tim
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org