This content has been marked as final.
Show 2 replies
-
1. Re: File locations
kraptor Jul 11, 2006 3:10 PM (in response to creative77)What I did was put the images of my login page in the "portal-core" directory within jboss-portal.sar...
For example, I place image1.gif in portal-core/images and then modify the link to the image in login.jsp to src="/portal-core/images/image1.gif". -
2. Re: File locations
louise_za Jul 12, 2006 3:43 AM (in response to creative77)If you want to keep you images out of the portal sar then you can do the following:
In your WebContent directory of your war/web app (or the directory where your WEB_INF dir is located), make an 'images' directory and put all your images in there.
Then, in your jsp you can get to those images using code similar to this, assuming you have an image named myimage.jpg in the images directory:<IMG SRC="<%= response.encodeURL(renderRequest.getContextPath() + "/images/") %>myimage.jpg">