You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sri Sankaran <Sr...@sas.com> on 2002/10/03 17:18:46 UTC

[TILES] Frame's src attrib has html & not a url

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

Re: [TILES] Frame's src attrib has html & not a url

Posted by Cedric Dumoulin <ce...@apache.org>.
  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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>