Bug 57496 - Hard-coded URL in SVG example
Summary: Hard-coded URL in SVG example
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Examples (show other bugs)
Version: 8.0.17
Hardware: PC All
: P2 minor (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-26 10:10 UTC by Konstantin Kolinko
Modified: 2015-02-01 19:29 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.