使用图像 url 在 JSP 中显示图像

Display image in JSP using image url

我正在尝试在 JSP 页面中显示图像。该图像只是一个 Google 图像,我正在将图像 URL 传递到 JSP 页面内的 src。

下面是我将 link 传递给 img 标记的代码

  <img src="http://tigerday.org/wp-content/uploads/2013/04/Siberischer_tiger.jpg" width="100" height="100">

但是图片没有显示;它只显示图像应该出现的框。

修正错别字:

<img src="http://tigerday.org/wp-content/uploads/2013/04/Siberischer_tiger.jpg" width="100" height="100">

你那里打错了:

  <img scr="http://tigerday.org/wp-content/uploads/2013/04/Siberischer_tiger.jpg" width="100" height="100">

应该是

  <img sRC="http://tigerday.org/wp-content/uploads/2013/04/Siberischer_tiger.jpg" width="100" height="100">

检查 img 标签中的 src 拼写

改正

<img SRC="http://tigerday.org/wp-content/uploads/2013/04/Siberischer_tiger.jpg" width="100" height="100">