Timothy,

Sorry, I couldnt disagree with you more.

Custom tags are exactly the place to put html - they are part of the view,
if you look at struts html tags thats what they do. There isnt currently
javascript in any struts tags (just attributes for most javascript events)
and there are probably browser issues that could complicate this, but its on
the Struts to do list to handle client side validation which almost
certainly means javascript and tags.

Niall

> -----Original Message-----
> From: Tim Colson [mailto:[EMAIL PROTECTED]]
> Sent: 31 July 2001 02:20
> To: [EMAIL PROTECTED]
> Subject: RE: some comparision between JSP/struts and velocity
>
>
> > Niall Pemberton suggested
> > ...if the Struts tags dont do what you want then write your
> > own. Then you dont have to use scriptlets, you have a re-useable bit of
> > functionality, the web designers are happy and you dont have to use
> > Velocity.
> While a custom tag is an option; this bit of functionality would have
> required embedding  javascript code and html inside the custom tag lib. To
> me, putting view specific code like inside a tag library is also
> a slippery
> slope in the quest to keep thing separated.
>
> Cheers,
> Timothy
>

Reply via email to