Hello, I'm having a real hard time by trying to display an image with the <img> tag in a portlet. I can't seem to generate the URL appropriately
This is the closest I've come to generating the right url in the doView() method:
I even tried to encode it like so:
but that throws and Illegal argument exception. becase the url generated is something like this:
and the encodeURL method requires the path to start with a "/" or contain "://".
the bottom line question is: how can i get an url for an image that is included in my war archive?
thanks,
Pablo