Linux Today: Linux News On Internet Time.

More on LinuxToday

developerWorks: JSP Best Practices: Intro to Taglibs

Aug 11, 2003, 05:30 (1 Talkback[s])
(Other stories by Brett McLaughlin)


Desktop-as-a-Service Designed for Any Cloud ? Nutanix Frame

"In the last installment of JSP best practices, you learned a scriptlet-based technique for adding last-modification time stamps to your JavaServer Pages (JSP) files. Unfortunately, scriptlets introduce more long-term complexity to your pages than they offer in terms of short-term benefit. They interweave all sorts of HTML with Java code, which makes debugging and authoring tricky. They aren't reusable, which often leads developers to cut-and-paste between JSP pages, which in turn leads to multiple versions of the same piece of code. And they make error reporting difficult, since JSP pages have no clean-cut way to spit out script errors.

"So this time we'll devise a better solution. In this installment, you'll learn the basics of converting a scriptlet to a custom tag and setting it up for use in your JSP development projects..."

Complete Story

Related Stories: