>
(Was Re: client-side validations with JSP)
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
E.g.
<table table properties in here>
<myTagLib:repeatTableRow some arguments in here - namely the vector/array/list to
iterate over>
<tr>
Some table stuff in here - perhaps using jsp:getProperty on a bean instance
<td><jsp:getProperty ...>
</tr>
</myTagLib:repeatTableRow>
If the "repeat" tag sets the bean to point to the correct instance in the collection,
then a table can be build directly. Even better still, there is NO code in the page at
all. I'm hoping that this will work wonders for integration with tools like
Dreamweaver and the like.
How much work have others done with custom tags? How stable is the spec ? 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?).
thanks
Jari Worsley
>
> In a JSP 1.1 environment, I'd be more likely to write a custom tag to emit this
> code, but the basic idea is the same -- the code you create depends on the state
> of your bean properties.
>
> >
> > David
> >
>
> Craig McClanahan
>
> ===========================================================================
> 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
===========================================================================
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