<% String PublicURL = componentRequest.getPublicResourcePath();
%>
You can also get the complete path to image include the subfolder
/image with the command:
<% String ImageURL = componentRequest.getPublicResourcePath()
+ "/images/"; %>
Hint: We use the string variable ImageURL in following table
to demonstrate the setting of the src attribute.