1 Reply Latest reply on Mar 8, 2009 3:51 PM by Margot Media

    HelloWorld Portlet Problem

    Margot Media Newbie

      Hello,

      i create a HelloWorld portlet and now, i wish that my portlet display a simple picture. I propose following lines in my java class, but it doesn't work.... -.-

      // picture on my HDD
      writer.write(" ");

      writer.write(" ");

      writer.write("<img src=\"C:\\icon.jpg\" alt=\"icons\"> ");

      // picture in the folder WebContent, this folder is the root folder of META-INF and WEB-INF

      writer.write(" ");

      writer.write("<img src=\"icon.jpg\" alt=\"icons\"> ");

      and if i copy my picture in WEB-INF and write this both last lines, it doesn't work... where is my mistake?