> -----Original Message-----
> From: Caroline Jen [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 03, 2004 6:41 AM
> To: Struts Users Mailing List
> Subject: RE: Tiles in Rows and Columns (Problem Solved)
> 
> 
> Thanks, Jim, for your support.  I made a stupid
> mistake.  The "View Source" helps in diagnosing
> problems.

Yes it does.... glad I could help!


> --- Jim Barrows <[EMAIL PROTECTED]> wrote:
> 
> > 
> > 
> > > -----Original Message-----
> > > From: Caroline Jen [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, September 02, 2004 12:41 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: Tiles in Rows and Columns
> > > 
> > > 
> > > It does not work. There are three rows. The second
> > row
> > > has two columns. 
> > > 
> > > I am able to display the first row, "the column on
> > my
> > > right hand side in the second row", and the third
> > row.
> > > The column on my left hand side in the second row
> > is
> > > not shown.
> > 
> > Okay, what happens when you comment out the tiles
> > stuf, and just put some test text in the table?
> > If that works ( and I think it will), then you know
> > it's not on the Frame.jsp page you have problems.
> > One of the little tricks I use when developing tiles
> > is to have at the top and bottom of each jsp  page:
> > <!-- Start /path/to/page.jsp -->
> > blah
> > <!-- End /path/to/page.jsp -->
> > 
> > That way I can at least tell if the page is being
> > included.  This helps mostly when you're looking at
> > what is being generated in the browser.
> > Everything looks like it should be working.. so I'm
> > wondering what is exactly is ending up on the page
> > when you view source.
> > 
> > 
> > 
> > > 
> > > Here is the Frame.jsp which defines the layout:
> > > code: 
> > > ________________________________________
> > > 
> > > <%@ taglib uri="/tags/struts-tiles" prefix="tiles"
> > %>
> > > <html:html>
> > > <HEAD>
> > > <html:base/>
> > > 
> > > <TITLE><bean:message key="app.title"/></TITLE>
> > > </HEAD>
> > > <BODY>
> > > <TABLE>
> > > <TR>
> > >    <TD COLSPAN="2" ALIGN=center>
> > >       <tiles:get name="upperbar"/>
> > >    </TD>
> > > </TR>
> > > <TR>
> > >    <TD>
> > >       <tiles:get name="links"/>
> > >    </TD>
> > >    <TD>
> > >       <tiles:get name="content"/>
> > >    </TD>
> > > </TR>
> > > <TR>
> > >    <TD COLSPAN="2" ALIGN=center>
> > >       <tiles:get name="lowerbar"/>
> > >    </TD>
> > 
> > </tr>
> > 
> > > </TABLE>
> > > </BODY>
> > > </html:html>
> > > ________________________________________
> > > 
> > > 
> > > My tiles-def.xml looks like:
> > > code: 
> > > ________________________________________
> > > 
> > > <!DOCTYPE tiles-definitions PUBLIC
> > >        "-//Apache Software Foundation//DTD Tiles
> > > Configuration//EN"
> > >       
> > >
> >
> "http://jakarta.apache.org/struts/dtds/tiles-config.dtd";>
> > >  
> > > <tiles-definitions>
> > >     <definition name=".frame.Base"
> > > path="/frame/common/layouts/Frame.jsp">
> > >       <put name="upperbar" 
> > > value="/frame/common/upperbar.jsp"/>
> > >       <put name="links"    
> > > value="/frame/common/links.jsp"/>
> > >       <put name="content"   value="${content}"/>
> > >       <put name="lowerbar" 
> > > value="/frame/common/lowerbar.jsp"/>
> > >     </definition>
> > >     <definition name=".frame.Home"
> > > extends=".frame.Base">
> > >       <put name="content"  
> > > value="/frame/content/home.jsp"/>
> > >     </definition>
> > > </tiles-definitions>
> > > ________________________________________
> > > 
> > > 
> > > The links.jsp (the one that is now shown) looks
> > like:
> > > code: 
> > > ________________________________________
> > > 
> > > <B>WELCOME TO HSIN-CI</B>
> > > <BR>
> > > <BR>
> > > <BR>
> > > <BR>
> > > <TABLE>
> > > <TR>
> > > <TD aligh=left>
> > > <B>Member Tools</B>
> > > </TD>
> > > </TR>
> > > </TABLE>
> > > <BR>
> > > <TABLE>
> > > <TR>
> > > <TD><BR></TD>
> > > <TD align=left>
> > > Update My Account
> > > </TD>
> > > </TR>
> > > <TR>
> > > <TD><BR></TD>
> > > <TD align=left>
> > > Required Information
> > > </TD>
> > > </TR>
> > > <TR>
> > > <TD><BR></TD>
> > > <TD aligh=left>
> > > Additional Information
> > > </TD>
> > > </TR>
> > > <TR>
> > > <TD><BR></TD>
> > > <TD align=left>
> > > Asset Information
> > > </TD>
> > > </TR>
> > > </TABLE>
> > > ________________________________________
> > > 
> > > 
> > > And the home.jsp looks like:
> > > code: 
> > > ________________________________________
> > > 
> > > <%@ taglib uri="/tags/struts-html" prefix="html"
> > %>
> > > <%@ taglib uri="/tags/struts-bean" prefix="bean"
> > %>
> > > <%@ taglib uri="/tags/struts-logic" prefix="logic"
> > %>
> > > <%@ taglib uri="/tags/request" prefix="req" %>
> > >  
> > > <TR>
> > > <TD ALIGN=center>
> > > <H2>HSIN-CI ALL MEMBERS PAGE</H2>
> > > </TD>
> > > </TR>
> > >  
> > > <TR> 
> > > <TD class="input">
> > > <html:link forward="logon">Sign in</html:link>
> > > </TD>
> > > </TR>
> > >  
> > > <TR> 
> > > <TD class="input">
> > > <html:link forward="logon">Register</html:link>
> > > </TD>
> > > </TR>
> > > ________________________________________
> > > 
> > > 
> > > --- Jim Barrows <[EMAIL PROTECTED]> wrote:
> > > 
> > > > 
> > > > 
> > > > > -----Original Message-----
> > > > > From: Caroline Jen
> > [mailto:[EMAIL PROTECTED]
> > > > > Sent: Thursday, September 02, 2004 11:50 AM
> > > > > To: Struts Users Mailing List
> > > > > Subject: RE: Tiles in Rows and Columns
> > 
> === message truncated ===
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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

Reply via email to