I mean where you can specify how a tag is rendered (within your browser) totally using CSS rules, rather than specifying messy and deprecated tags such as <FONT>.

I also exclude using inline CSS styles such as <div style="font-size: 18px; font-family: sans-serif;"> when it could declared as <div> and let a CSS define it's behavior. Inline CSS doesn't reduce the clutter, it generally adds to it, especially if you want more than one tag to exhibit the same behavior.

Cheers

Christopher Marsh-Bourdon
www.marsh-bourdon.com
AIM: marshbourdon



On 8 Aug 2005, at 22:06, Johnson, Kaerstin wrote:


I am not understanding what you mean by this (encompassing* CSS), or
perhaps I am not familiar with some technique, can you elaborate or
provide an example? I am intrigued..



* By "encompassing', I mean no formatting is used directly in the JSP

where >it can be deferred to a style.



-----Original Message-----
From: Christopher Marsh-Bourdon [mailto:[EMAIL PROTECTED]
Sent: Monday, August 08, 2005 4:41 PM
To: Struts Users Mailing List
Subject: [OT] JSP Clutter

Apologies if this it _too_ off-topic, but I think it might be worth
mentioning.  In the same vein as my "web framework is better than
yours" we, in the office,  have been having a fairly heated
discussion about which way we go technology wise next.  Over the past
six months we have been migrating our front-ends from .net to Java
based technologies, and Struts in the main.  Now a new manager has
come on board and he wishes us to revisit the reasons why we choose
Struts.  Now I was the main instigator as I have been using Struts
for the past 3 years and I had previously been using an in-house MVC
(urrgh!).  I like MVCs and especially Struts, mainly because it fits
my mindset of seperation.  The main critisism (and the point of this
missive) is that the argument I keep on facing is:

"JSP/HTML/XHTML is a messy mark-up.  It is cumbersome to refactor and
a bugger to work out.  We could use Tapestry or JSF and forget about
HTML."

So, I've gone back and revisited our JSPs to see if this criticism is
correct; and to be honest it is.  I am a fairly careful coder and I
adhere to the XHTML standards as diligently as possible, but it still
looks pretty confusing.  Now the main issue is that we really (a team
of three) never had the time to get the basics right prior to
launching into the migration from .net to Struts. By the basics, I
mean working out an encompassing* CSS.  So, I've gone back and re-
factored the JSP to use an encompassing* CSS document, and lo and
behold the code (JSP) is cleaner and so much better to work with.

Now maybe everyone but me and my team uses an encompassing* CSS
throughout their JSP as standard and never deviates from that path,
but if you don't; take a little while to research what it can do for
your development.  I have still to convince this new manager that
Struts is the way, but I've removed one of the major arguments to
going down the Tapestry/JSF route for now (not that they don't use
CSSes)!

* By "encompassing', I mean no formatting is used directly in the JSP
where it can be deferred to a style.

Cheers


Christopher Marsh-Bourdon
www.marsh-bourdon.com
AIM: marshbourdon


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




Reply via email to