Hi,
I want to read an xsl file from a
java class(which is located in a package com.a.b.c)
xsl file and the java class resides in the same package.(com.a.b.c)
The possible ways that i tried:
String xsltFile = "test.xsl";
String xsltFile = new File("test.xsl").toURL().toExternalForm( );
String xsltFile = new File("test.xsl").getAbsolutePath();
String xsltFile = new File("test.xsl").getPath( );
String xsltFile = new File("test.xsl").getPath( );
String xsltFile = "com/a/b/.../test.xsl"
All the above methods returns file path (where the application is deployed) but the actual xsl file doesn't exist there.
How should I read this "xsl file" from my java class which is located in the same path?
Could some one help me out on it?
Thanks & Regards,
Chandana.