Jari Worsley wrote:
>
> You mention custom tags. I presume we're talking about using the taglib stuff in 1.1
> here..
>
> I'm starting to do this myself, with the aim of getting rid of all "code" from JSP
> pages, to try and ease graphic designer/programmer relations... ;). The idea being to
> write custom tags for loops, array access, indexed property access (not supported by
> jsp:getProperty) and the like
> [...]
> How much work have others done with custom tags? How stable is the spec ?
I have developed a lot of custom tags (or custom "actions" to use the JSP spec
language), first an upgrade of our InstantOnline Basic component suite
(see http://www.gefionsoftware.com/InstantOnline/) and a set tags for a book
I'm writing.
Custom actions are really powerful and let you avoid almost all code from
your pages. I've found that in some cases, small JSP expressions as run-time
attribute values are still needed, and even more attractive than using
<jsp:getProperty> even when they are not strictly required. I also use scriptlets
for simple conditions, such as
<% if (someCondition) { %>
do something with template text and actions
<% } %>
Sure, you could make your own <myLib:if> action, but to me it doesn't make
the page easier to develop or understand for non-programmers.
> I am using
> SJSP as the JSP implementation, with Apache 1.3.9 and JServ in support (plus jdk
> 1.1.6). Seems ok at the start, I'm wondering if anyone has found any "gotchas" later
> on?
>
> Does anyone know if it's possible/ desirable to extend the JSP tld and implementation
> directly? (or is this something that is SJSP implementation dependent?).
I use the Jakarta Tomcat server, see http://jakarta.apache.org for this development.
I'm not familiar with SJSP, but extending the "JSP TLD" doesn't sound like it's
the way to do it. If you develop your own custom action library you need to
create your own TLD to describe the tags.
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html