I need to access xsl file inside the servlet.The xsl file is available inside the webapplication.I have used the following method for accessing the realpath of the file. ServletContext.getRealPath(/../filename).
It's working fine in windows environment.When we moved the application to unix environment ServletCOntext.getRealPath is returning null.