Billy,

Struts tags are great....if you can use them "as is", that is. The problem
with extending them is that most of the code is contained in 1 or 2 methods
(doStartTag() for example). Which means if you want to change a small bit of
functionality, you end up re-coding most of these core methods - which is a
pain, expecially if you take a new version of Struts.

The only benefit you get by extending them is you dont have to define the
properties and getters/setters - but you do have to re-code the core
functionality. Shame really, if they were designed in a more "granular" way
then it would make Struts much better. The committers dont seem much
interested in this and many people seem to shy away from the internals of
Tags - i thinks thats unfortunate, tags are pretty straight forward in most
cases.

In some ways I think its better to ditch the tag element of struts and
re-wtite your own properly, otherwise make noises on the developers list and
see if you can get them to re-structure the code.

good luck

Niall



> -----Original Message-----
> From: Bill Mariani [mailto:[EMAIL PROTECTED]]
> Sent: 18 October 2001 21:15
> To: [EMAIL PROTECTED]
> Subject: Extending Struts TagLibs
>
>
>
>
> My first question is: Has anyone had any luck extending any of
> the tag libs
> provided with struts (html, bean..)
>
> Second, if so could some one post some example code.
>
>
> Thanks,
>
>
> Billy
>
>
>
>
>
> _______________________________________________________
> http://inbox.excite.com
>
>

Reply via email to