G
GIMME
The following lines exist in a JSP ...
String sRealPath = session.getServletContext().getRealPath("/"); /*1*/
String sXSLFile = sRealPath + "/xsl/xl.xsl" /*2*/
Reader r = new FileReader( new File(sXSLFile) ) ; /*3*/
StreamSource ss = new StreamSource(r); /*4*/
transformer = TransformerFactory.newInstance().newTransformer( ss ) ;
How would lines 1,2,3 and 4 be changed so that the xl.xsl file
is fetched as a resource instead of from the file system?
Thanks
String sRealPath = session.getServletContext().getRealPath("/"); /*1*/
String sXSLFile = sRealPath + "/xsl/xl.xsl" /*2*/
Reader r = new FileReader( new File(sXSLFile) ) ; /*3*/
StreamSource ss = new StreamSource(r); /*4*/
transformer = TransformerFactory.newInstance().newTransformer( ss ) ;
How would lines 1,2,3 and 4 be changed so that the xl.xsl file
is fetched as a resource instead of from the file system?
Thanks