Hi,

I have the feeling that I am doing something backwards with nested Stripes Layouts but don't see why the following won't work. I looked through the examples in the "Stripes" book but no dice. I'm guessing there something obviously wrong with the following and would appreciate assistance as I am sure many people are successfully using nested layouts.

Thanks in Advance,

--Nikolaos


ActionBean forwards to:
-------------------------------
design_site.jsp


design_site.jsp
-------------------
<s:layout-render name="< ... >/3c.jsp"> <s:layout-component name="col_center">
       Center image...
   </s:layout-component>
   <s:layout-component name="col_left">
       Left replaced...
   </s:layout-component>
   <s:layout-component name="col_right">
       Right replaced...
   </s:layout-component>
</s:layout-render>


3c.jsp
-------
<s:layout-definition>
   <s:layout-render name="< ... >/html_template.jsp">
   <s:layout-component name="block_body">
           <div id="body">
               <div id="enclose0">
                   <div id="col3Center0">
                       <s:layout-component name="col_center">
                           This is the centre column
                       </s:layout-component>
                   </div>
                   <div id="col3Left0">
                       <s:layout-component name="col_left">
                           This is the left column
                       </s:layout-component>
                   </div>
               </div>
               <div id="col3Right0">
                   <s:layout-component name="col_right">
                       This is the right column
                   </s:layout-component>
               </div>
           </div>
   </s:layout-component>
   </s:layout-render>
</s:layout-definition>


html_template.jsp
----------------------
<s:layout-definition>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd";>
   <html>
       <head>
           < ... >
       </head>
       <body>
           < ... >
           <s:layout-component name="block_body">      <=======  This
               3 column or 2 column body layout        <=======  BLOCK
           </s:layout-component>                       <=======  is blank
           < ... >
       </body>
   </html>
</s:layout-definition>


------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to