|Summary:||Hard-coded URL in SVG example|
|Product:||Tomcat 8||Reporter:||Konstantin Kolinko <knst.kolinko>|
|Component:||Examples||Assignee:||Tomcat Developers Mailing List <dev>|
Description Konstantin Kolinko 2015-01-26 10:10:31 UTC
A minor glitch in the examples. The file \webapps\examples\jsp\jsp2\jspx\svgexample.html in Examples web application has the following text: <li>Copy the following URL: <a href="http://localhost:8080/examples/jsp/jsp2/jspx/textRotate.jspx?name=JSPX"> http://localhost:8080/examples/jsp/jsp2/jspx/textRotate.jspx?name=JSPX</a> </li> If Tomcat runs on a different port number, the above link to localhost:8080 becomes wrong. I noted this when doing a recursive download (wget -r) of the examples webapp. To fix this one has to convert this static HTML page into a JSP one.
Comment 1 Christopher Schultz 2015-01-26 15:33:00 UTC
(In reply to Konstantin Kolinko from comment #0) > To fix this one has to convert this static HTML page into a JSP one. Or just use a relative reference. This should be easy, as the two documents are in the same directory (i.e. no "..", etc. needed).
Comment 2 Mark Thomas 2015-02-01 19:29:13 UTC
Fixed in trunk and 8.0.x for 8.0.19 onwards. I used a relative link and re-worded the surrounding text so a full URL was not required.