This is kind of trivial and not related to Tiles at all.
Fact is, your Flash thing or "even" the image, if you like,
are not found because their URLs are incorrect. Solution
is to specify context-relative URLs like this (JSP 2.0):

<img src="${pageContext.request.contextPath}/myImage.jpg">

and the like. For older JSP versions, use the <c:out> or
<c:url> tags.

HTH,
-- Chris

M.Liang Liu schrieb:

My GOD!
The same thing  happened when I try to insert an image!!!!!!!!!!

Help,please.
On 5/16/06, M.Liang Liu <[EMAIL PROTECTED]> wrote:

Hi,guys!
   I am meeting with a problem when I tried to insert a flash to my
pages.I use Tiles plug-in and it works well.
  I put a flash in my header.jsp and the flash can display as expected as
I typed the very url of this page.But when I put this page in my
layout.jsp tiles files,nothing displayed.
  I defined the xml file as following:

> <!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD
> Tiles Configuration 1.1//EN" "
> http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";>
> <tiles-definitions>
>     <definition name=".main.layout" path="/tiles/layouts/Layout.jsp">
>         <put name="title" value="${title}"/>
>         <put name="menutree" value="/tiles/menutree.jsp" />
>         <put name="header" value="" />
>         <put name="body" value=""/>
>         <put name="footer" value="/tiles/footer.jsp" />
>     </definition>
>     <definition name=".index" extends=".main.layout">
>         <put name="title" value="welcome!!!" type="string" />
>         <put name="header" value="/tiles/header.jsp" />
>     </definition>
> </tiles-definitions>
>
And I opened welcome.do mapping to ".index" and the pages displayed
successfully ,except the flash.

Who can help me?And it is strange,yup?

Beg your pardon for my poor English.

Thanks for reading.






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to