hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r475402 - /lucene/hadoop/trunk/src/webapps/job/jobconf.jsp
Date Wed, 15 Nov 2006 20:16:34 GMT
Author: cutting
Date: Wed Nov 15 12:16:34 2006
New Revision: 475402

URL: http://svn.apache.org/viewvc?view=rev&rev=475402
Log:
HADOOP-721.  Get stylesheet from local filesystem rather than with HTTP.  Contributed by Arun.

Modified:
    lucene/hadoop/trunk/src/webapps/job/jobconf.jsp

Modified: lucene/hadoop/trunk/src/webapps/job/jobconf.jsp
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/webapps/job/jobconf.jsp?view=diff&rev=475402&r1=475401&r2=475402
==============================================================================
--- lucene/hadoop/trunk/src/webapps/job/jobconf.jsp (original)
+++ lucene/hadoop/trunk/src/webapps/job/jobconf.jsp Wed Nov 15 12:16:34 2006
@@ -44,10 +44,8 @@
     JobConf jobConf = job.getJobConf();
     ByteArrayOutputStream jobConfXML = new ByteArrayOutputStream();
     jobConf.write(jobConfXML);
-    String baseUrl = request.getScheme() + "://" + request.getServerName() + ":"
-                     + request.getServerPort();
-    URL jobConfXSL = new URL(baseUrl + "/static/jobconf.xsl");
-    XMLUtils.transform(jobConfXSL.openStream(),
+    XMLUtils.transform(
+        jobConf.getConfResourceAsInputStream("webapps/static/jobconf.xsl"),
 	    new ByteArrayInputStream(jobConfXML.toByteArray()), 
 	    out
 	  );



Mime
View raw message