Say I've got a header file, where most of it is static HTML, but which has a few parameterized elements:
<html>
<head>
<title><%= metaTitle %></title>
</head>
<body>
... lots of static code ...
<h1><%= pageTitle %></h1>
... lots of static code ...
<!-- ## begin content ## -->
If I wanted to do this in ColdFusion (that's my background), I'd simply make a custom tag, and I'd refer to it from my calling page as:
<cf_header metaTitle="Welcome to my site" pageTitle="Home"/>
What's the
JSP equivalent? I have a vague understanding of JSP custom tags, but I guess I'm just trying to avoid a slew of those beastly "out.println()"s, "+"s, or ".append()"s. Seems like there should be a better way, when the bulk of the output is static, with only a couple of parameters.
Am I making any sense? :-)
Thanks,
Jamie
[ January 25, 2005: Message edited by: Jamie Jackson ]