Newbie question re. CSS and Struts
Hi List, I wonder what would be a best practice for formating output when using Struts. Is there such a thing as a struts.css that gets included by default and might even contain elements for each / some tags out of the tld's? TIA Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie question re. CSS and Struts
Thanks Matthias, looks like a powerfull tool for formatting tables, on first glance it seemed a bit of an overkill for what I need to do though. I wonder, what the general approach for this is? I mean, do many people use CSS in combination with Struts or do you normally attache something like font bla... to each property in your message property file, or... TIA Jan -Original Message- From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] Sent: Saturday, June 26, 2004 2:19 PM To: 'Struts Users Mailing List' Subject: RE: Newbie question re. CSS and Struts Jan, take a look at http://displaytag.sf.net that taglib builds nice html-tables you can you it with struts. Cheers, -Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: Saturday, June 26, 2004 2:16 PM To: 'Struts Users Mailing List' Subject: Newbie question re. CSS and Struts Hi List, I wonder what would be a best practice for formating output when using Struts. Is there such a thing as a struts.css that gets included by default and might even contain elements for each / some tags out of the tld's? TIA Jan - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question re. CSS and Struts
Jan Behrens wrote: I mean, do many people use CSS in combination with Struts or do you normally attache something like font bla... to each property in your message property file, or... I usually use SiteMesh now for controlling the overall layout of my pages, but even if using Struts Tiles, it's a good idea to have at least one main style sheet that is imported on say your site's header page. That way each page automatically gets the 'site style' included for every page. I usually just call mine main.css out of habit. Sometimes I'll give it the webapp name ie. myapp.css. Any 'extremely' unique styles that a page needs you could add custom to the page in question. -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question re. CSS and Struts
I typically use my own style sheet on the finished product. During development though I normally use embedded styles, but imported from their own page using tiles. As the browser is seeing embedded styles and not an imported style sheet, I don't have the caching problem during development. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question re. CSS and Struts
I am using tiles: definition name=.article.Base path=/article/common/layouts/Article.jsp put name=title value =${title}/ put name=header value=/article/common/header.jsp/ put name=message value=/article/common/message.jsp/ put name=content value=${content}/ put name=navbar value=/article/common/navbar.jsp/ /definition I want to control the color of links. My links are in the /article/common/navbar.jsp. If I put the style tag in the /article/common/hearder.jsp, will the style tag control the color in another piece of tile? Yes, it will. Those separate files are put together by the tiles plugin, and what the web browser sees is one file - it doesn't know that the separate pieces began life on the server as separate files. So putting your styles into header.jsp will effect (or can effect) anything else on the finished page. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]