wood burning stoves 2.0*
The moose likes Servlets and the fly likes Do custom tags really simplify web design? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Do custom tags really simplify web design?" Watch "Do custom tags really simplify web design?" New topic
Author

Do custom tags really simplify web design?

Richard Taylor
Author
Ranch Hand

Joined: Jun 19, 2001
Posts: 45
Here's an opener for 10....
Having designed multi-device portals using XML/XSL and also custom JSP tags, I have found that both methods leave a lot to be desired from the web designer's (and developers) point of view. Here's why...
1. both separate content from format. This is a Good Thing!
2. both have the ability to create almost unreadable HTML/XSL files. Bad bad bad.
3. both cause significant additional work on the part of the developer. I personally find custom JSP quite complex, even if you use a pre-built framework like Struts.
4. both need additional processing power.
So, the question is, are XML/XSL and JSP as elegant as it gets, or are they a halfway house, and there's something better coming 'real soon now'?


Richard Taylor <br />Author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861003897/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Mobile Programming</a>
Adam Chace
Greenhorn

Joined: May 24, 2001
Posts: 14
Richard,
You raise some good questions here, being a custom JSP zealot I will offer my perspective on a couple of your points.
1. both separate content from format. This is a Good Thing!
<adam>I fully agree</adam>
2. both have the ability to create almost unreadable HTML/XSL files. Bad bad bad.
<adam>I fully agree that XSL/XSLT files can and often are very unreadable, but I think well designed tags in HTML are typically very readable, especially to HTML folks who are used to tags and attributes.</adam>
3. both cause significant additional work on the part of the developer. I personally find custom JSP quite complex, even if you use a pre-built framework like Struts.
<adam>I would agree that the actual API for tags could be simpler, but it is improving. The resulting tag, if designed well, should be easy for the content developer though</adam>
4. both need additional processing power.
<adam>Not sure exactly what you mean by this, but if you mean that a standard web server needs to exert additional effort to server either, that is true. However, this is more a matter of how you partition the processing. If your web/appserver supports JSP you can simply view this as part of the processing power of the web server</adam>

------------------
Adam Chace
Author of :JSP Tag Library


Adam Chace<BR>Author of :<A HREF="http://www.amazon.com/exec/obidos/ASIN/193011009X/electricporkchop/102-2552103-3190518" TARGET=_blank rel="nofollow">JSP Tag Libraries</A><BR><A HREF="http://www.chalkcreek.com" TARGET=_blank rel="nofollow">Chalk Creek Software</A>
Brett Knapik
Ranch Hand

Joined: Oct 15, 2000
Posts: 255
I have read in my one of my JSP books that people use custom tag libraries to keep the code looking like that rest of the page instead of putting in scriplets etc.
------------------
In Gates we trust. Yeah right....


"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Do custom tags really simplify web design?