February 4, 2010 at 15:59
#27832
An information regarding the mapping of the root web folder to the physical file system is known only to the web application container. So the container/server should be somehow taken into the path resolving. There are two methods:
- Request the resources via HTTP. In your case it is going to be a definition of URL base = new URL(“http://yourserver/”);
- Let PD4ML to talk to the server directly with pd4ml.useServletContext(ServletContext ctx)