<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Current Url generates Exception:NULL..........</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=12873230" />
  <subtitle>Current Url generates Exception:NULL..........</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=12873230</id>
  <updated>2026-06-02T03:30:28Z</updated>
  <dc:date>2026-06-02T03:30:28Z</dc:date>
  <entry>
    <title>RE: Current Url generates Exception:NULL..........</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=21720557" />
    <author>
      <name>Haris Tasawar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=21720557</id>
    <updated>2013-02-22T16:02:18Z</updated>
    <published>2013-02-22T16:02:18Z</published>
    <summary type="html">i want to do this too... but instead of an image, i want to display a PDF file, how would that work. If its possible, let me know.&lt;br /&gt;&lt;br /&gt;Thanks.&lt;br /&gt;Haris</summary>
    <dc:creator>Haris Tasawar</dc:creator>
    <dc:date>2013-02-22T16:02:18Z</dc:date>
  </entry>
  <entry>
    <title>RE: Current Url generates Exception:NULL..........</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12885874" />
    <author>
      <name>Ravi Kumar Gupta</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12885874</id>
    <updated>2012-03-08T09:38:03Z</updated>
    <published>2012-03-08T09:38:03Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Will background-image property of css not help? check this &lt;a href="http://www.w3schools.com/css/css_background.asp"&gt;http://www.w3schools.com/css/css_background.asp&lt;/a&gt; &lt;br&gt;&lt;br&gt;Just place the image url at appropriate position. Suppose abc is the id of the element you want to set background of..&lt;br&gt;&lt;pre&gt;&lt;code&gt;
#abc{background-image:url('paper.gif');}
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;HTH&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Ravi Kumar Gupta</dc:creator>
    <dc:date>2012-03-08T09:38:03Z</dc:date>
  </entry>
  <entry>
    <title>RE: Current Url generates Exception:NULL..........</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12885788" />
    <author>
      <name>Sanket Gosavi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12885788</id>
    <updated>2012-03-08T09:32:40Z</updated>
    <published>2012-03-08T09:32:40Z</published>
    <summary type="html">how?..is der any attribute or somthing...</summary>
    <dc:creator>Sanket Gosavi</dc:creator>
    <dc:date>2012-03-08T09:32:40Z</dc:date>
  </entry>
  <entry>
    <title>RE: Current Url generates Exception:NULL..........</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12885631" />
    <author>
      <name>Ravi Kumar Gupta</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12885631</id>
    <updated>2012-03-08T09:17:58Z</updated>
    <published>2012-03-08T09:17:58Z</published>
    <summary type="html">Of course yes... depends on how you are writing that.</summary>
    <dc:creator>Ravi Kumar Gupta</dc:creator>
    <dc:date>2012-03-08T09:17:58Z</dc:date>
  </entry>
  <entry>
    <title>RE: Current Url generates Exception:NULL..........</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12883855" />
    <author>
      <name>Sanket Gosavi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12883855</id>
    <updated>2012-03-08T07:55:19Z</updated>
    <published>2012-03-08T07:55:19Z</published>
    <summary type="html">It worked....thnks.....Can i  display text keeping the image as background?</summary>
    <dc:creator>Sanket Gosavi</dc:creator>
    <dc:date>2012-03-08T07:55:19Z</dc:date>
  </entry>
  <entry>
    <title>RE: Current Url generates Exception:NULL..........</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12883659" />
    <author>
      <name>Ravi Kumar Gupta</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12883659</id>
    <updated>2012-03-08T07:17:17Z</updated>
    <published>2012-03-08T07:17:17Z</published>
    <summary type="html">As I previously mentioned and David also explaining, image should be in your document root. If you are not doing so, then serve those images using a different method. Which is not at all recommended, will decrease performance and not tested by me.. &lt;img alt="emoticon" src="@theme_images_path@/emoticons/tongue.gif" &gt;&lt;br /&gt;&lt;br /&gt;You can write a method which loads image content from local file and sends it to application.  serveResource() method may be used, I guess. But for that you will need to change all urls to get resources by serveResource.. I don&amp;#39;t know whether its possible but you can try.. &lt;br /&gt;&lt;br /&gt;David: is that really possible?</summary>
    <dc:creator>Ravi Kumar Gupta</dc:creator>
    <dc:date>2012-03-08T07:17:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: Current Url generates Exception:NULL..........</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12883606" />
    <author>
      <name>Sanket Gosavi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12883606</id>
    <updated>2012-03-08T06:57:30Z</updated>
    <published>2012-03-08T06:57:30Z</published>
    <summary type="html">Well...plzzzzz tell me wht i hav do to display image on d portlet....</summary>
    <dc:creator>Sanket Gosavi</dc:creator>
    <dc:date>2012-03-08T06:57:30Z</dc:date>
  </entry>
  <entry>
    <title>RE: Current Url generates Exception:NULL..........</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12877575" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12877575</id>
    <updated>2012-03-07T19:08:38Z</updated>
    <published>2012-03-07T19:08:38Z</published>
    <summary type="html">You cannot.  It&amp;#39;s an application server thing, not just something you can override.  It is there to ensure that you do not serve up resources outside of the application container, which would be a potential security leak.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2012-03-07T19:08:38Z</dc:date>
  </entry>
  <entry>
    <title>RE: Current Url generates Exception:NULL..........</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12877509" />
    <author>
      <name>Sanket Gosavi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12877509</id>
    <updated>2012-03-07T19:02:57Z</updated>
    <published>2012-03-07T19:02:57Z</published>
    <summary type="html">i knw dat...i want a way to do that</summary>
    <dc:creator>Sanket Gosavi</dc:creator>
    <dc:date>2012-03-07T19:02:57Z</dc:date>
  </entry>
  <entry>
    <title>RE: Current Url generates Exception:NULL..........</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12875643" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12875643</id>
    <updated>2012-03-07T16:35:47Z</updated>
    <published>2012-03-07T16:35:47Z</published>
    <summary type="html">You cannot use fixed paths to images, all images must be relative to the web application.&lt;br /&gt;&lt;br /&gt;That is a basic web server development thing which you should already be aware of to undertake web development.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2012-03-07T16:35:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: Current Url generates Exception:NULL..........</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12874819" />
    <author>
      <name>Ravi Kumar Gupta</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12874819</id>
    <updated>2012-03-07T16:35:19Z</updated>
    <published>2012-03-07T16:35:19Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Try putting that image in your portlet. Like if that is in your-portlet/images/arr.png then use&lt;br&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;img src="&amp;lt;%=request.getContextPath()%&amp;gt;/images/arr.png"&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Ravi Kumar Gupta</dc:creator>
    <dc:date>2012-03-07T16:35:19Z</dc:date>
  </entry>
  <entry>
    <title>Current Url generates Exception:NULL..........</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12873229" />
    <author>
      <name>Sanket Gosavi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12873229</id>
    <updated>2012-03-07T15:37:45Z</updated>
    <published>2012-03-07T15:37:45Z</published>
    <summary type="html">M not able to display any image on portlet................&lt;br /&gt;&amp;lt;img src=&amp;#34;H:/arr.jpg&amp;#34; height=&amp;#34;100&amp;#34; width=&amp;#34;200&amp;#34;/&amp;gt;&lt;br /&gt;&amp;lt;liferay-ui:png-image image=&amp;#34;H:/arr.jpg&amp;#34; height=&amp;#34;100&amp;#34; width=&amp;#34;500&amp;#34;&amp;gt;&amp;lt;/liferay-ui:png-image&amp;gt;&lt;br /&gt;none of it works......&lt;br /&gt;12:50:37,084 INFO  [PortalImpl:3829] Current URL /en_GB/web/sanketgosavi/arr.png generates exception: null</summary>
    <dc:creator>Sanket Gosavi</dc:creator>
    <dc:date>2012-03-07T15:37:45Z</dc:date>
  </entry>
</feed>
