[jboss-user] [Beginners Corner] - HelloWorld Portlet Problem

margotmedia do-not-reply at jboss.com
Sun Mar 8 15:50:00 EDT 2009


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?

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216020#4216020

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4216020



More information about the jboss-user mailing list