> > getResource is the most flexible but getRealPath should work > just fine in > > most cases. > > > > What do you think. > > getResource() works always (i.e. even if your servlet engine is > clustered and the actual file doesn't reside on the disk), getRealPath() > doesn't. > > Sure, tomcat doesn't make use of clustered enviornments very well, but > this may not be the case in the future. > > Just consider this when you evaluate the two. > > (I myself proposed to deprecate getRealPath() in the servlet expert > group but got rejected) I guess that settles it then! getResource() is just cooler anyways ;-) Is the idea still to get the cocoon.xconf in the /cocoon/WEB-INF/ folder, yet still have the site work relative to the root docBase for the Cocoon Web App? -david