Quantcast
Channel: BitNami Answers - latest questions
Viewing all articles
Browse latest Browse all 2052

Image not shown in a portlet

$
0
0

I created a portlet and added this line to a JSP. However, the image icon.png is not shown.

<img src="<%=renderResponse.encodeURL(renderRequest.getContextPath() + "/icon.png") %>">

I also tried this line, but it did not work either.

<img src="<%=renderResponse.encodeURL("/liferay" + renderRequest.getContextPath() + "/icon.png") %>">

I am using Liferay 6.1.1-0 on Ubuntu Linux 12.04 LTS 64-bit.

Please help. What command am I missing?


Viewing all articles
Browse latest Browse all 2052

Trending Articles