Jay,
The image does not appeaer on the webpage when img folder is outside
or inside the docroot. It appears only if it is inside the
docroot/samples/imgs/picture.gif.And I think it is because magnolia is
set as default web page. But I am not sure.

About the 500 error.
I tried to add image in the page properties dialog following the
quickstart template. Author instance showed no error. But activating
the node in author and tried to open up the public instance gave the
error.Since I was at the beginning (and still am),I just undeployed
and redeployed both war files again, started all over. My guess for
the error relative to my action is that in  headerImage content node ,
its type is declared as binary. Probably the type mismatched or the a
template i.e(a jsp file to retrieve this image from repository) to
display in the page was missing.
This is my assumption.

vanS




On 2/20/06, Moskos, Jay <user-list@magnolia.info> wrote:
> 1. yes that's what I would do.
> 2. try pulling "docroot" out so you have just
> "${pageContext.request.contextPath}/folder_name/imgs/picture.gif"
>
> Also I have another question for you vans regarding the 500 error you
> were getting in WebSphere when you were trying to pull up a new document
> to edit. What was causing the 500 error? How did you fix it?
>
> Cheers,
> Jay Moskos
> jmoskos @at@ talisentech .dot. com
>
> -----Original Message-----
> From: user-list@magnolia.info [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 20, 2006 3:36 PM
> To: user-list@magnolia.info
> Subject: [magnolia-user] Adding images in docroot
>
> Hi,
> The user manual says,
> "The docroot folder can be used to put files there that we would like
> to access via
> standard web mechanisms (e.g. static links)."
>
> 1. So should I add images that appear on every page in the docroot?
> 2.I tried to create a folder in docroot that holds my images.And tried
> to access the image through  a jsp file using the following syntax
> <img
> src="${pageContext.request.contextPath}/docroot/folder_name/imgs/picture
> .gif"/>
> The image does not appear. But i could access the same picture from
> <img
> src="${pageContext.request.contextPath}/docroot/samples/imgs/picture.gif
> "/>.
>
> Suggestions please?
> vans
>
> ----------------------------------------------------------------
> for list details see
> http://www.magnolia.info/en/magnolia/developer.html
> ----------------------------------------------------------------
>
> ----------------------------------------------------------------
> for list details see
> http://www.magnolia.info/en/magnolia/developer.html
> ----------------------------------------------------------------
>

----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to