Hi andy,

Is there anyway to get a code snippet of the html that you are generating.



*************************************
Ruben Cepeda
[EMAIL PROTECTED]
*************************************





----Original Message Follows----
From: "andy wix" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: RE: Tiles and well formed html
Date: Wed, 25 Aug 2004 12:45:27 +0000

Hi,

I'm not sure if this is the correct way to continue a thread, but here goes...
I have tried what Ruben suggested and I can get this to work ok. In his example the 2 <P> tags are formatted dependant on which CSS style is selected.
I cannot get mine to work where the bit inside the <DIV> tag is a Tile.
So my layout.jsp looks like:


<%@ taglib uri="struts/html-el" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<HTML>
<HEAD>
<link href="<html:rewrite page="/test.css" />" rel="stylesheet" type="text/css">
</HEAD>
<body>
<table width="100%" height="519" border="1" cellspacing="5">
<tr>
<DIV id="headerTile">
<td height="46" colspan="2"><tiles:insert attribute="header" /></td>
</DIV>


etc...

and my test.css file looks like:

#headerTile  {
      font-family: sans-serif;
      color: white;
      background-color:blue;
      font-size: 10pt;
}
#bodyTile  { font-family: sans-serif;
      color: red;
      background-color:blue;
      font-size: 15pt;
}
etc...

and my header.jsp is just a basic html file with no style sheets listed or div tags.

Thanks,
Andy

_________________________________________________________________
Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo


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

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



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



Reply via email to