Thanks that did it.

While I understand what you are saying about needing a valid URL, wouldn't that always 
be the case.  For example, in my case, when the 'Disclaimer' page is invoked, the 
tileDefinitions shows that it extends the BasicWizardPage which extends qsWizard.  The 
value of 'body' is evaluates to 'workflow/disclaimer/disclaimerBody.jsp' -- an actual 
file.  That's why it works.

Do I understand the process correctly?  To be more correct, should my <frame> element 
be

<frame src='<%=request.getContextPath()%><tiles:getAsString name="body"/>' name="body">

Sri

-----Original Message-----
From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, October 03, 2002 12:17 PM
To: Struts Users Mailing List
Subject: Re: [TILES] Frame's src attrib has html & not a url



  You should provide the attribute value as a String, not as its content 
to the frame:

  <frame src='<tiles:getAsString name="body"/>' name="body">

  Also remember that you can only use valid url here, not tiles 
definitions. This is because the url is interpreted by the client 
browser, not on the server.

      Cedric

Sri Sankaran wrote:

>Using Struts 1.0.2 and Tiles extension
>
>The page I am developing consists of frames.  Upon display, all the 
>frames display a 404 error.  Looking at the source of the HTML, I find 
>that the src attribute doesn't point to a URL but contains the contents 
>of the file at that url.
>
>My frameset page:
>
><frameset rows="10%, 80%, 10%">
>  <frameset cols="50%, 50%">
>    <frame src='<tiles:get name="title"/>' name="title" >
>    <frame src='<tiles:get name="help"/>' name="help">
>  </frameset>
>  <frame src='<tiles:get name="body"/>' name="body">
>  <frame src='<tiles:get name="navigation"/>' name="nav"> </frameset>
>
>My tile definitions contains
>
>  <definition name="qsWizard" path="/framedWizardLayout.jsp" >
>    <put name="title"         value="qsTitle.jsp"/>
>    <put name="help"          value="qsHelp.jsp"/>
>    <put name="body"          value=""/>
>    <put name="navigation"    value=""/>
>  </definition>
>
>  <definition name="BasicWizardPage" extends="qsWizard">
>    <put name="navigation" value="workflow/nav.jsp"/>  </definition>
>
>  <!-- Disclaimer page -->
>  <definition name="Disclaimer" extends="BasicWizardPage">
>    <put name="body"            value="workflow/disclaimer/disclaimerBody.jsp"/>
>  </definition>
>
>The page I am invoking is "Disclaimer".
>
>What am I doing wrong?
>
>Sri
>
>  
>


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


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

Reply via email to