hah forget the 'purist' approach!

I use jstl / struts taglibs whereever possible.

if i had a choice between writing my on taglib or scriptlet.... for me
scriptlet wins - much less hassel, and the code is there for you on the jsp,
and it's only normally for very simple things.

The main times i use scriptlets are for stupidly simple things that appear
to have been overlooked with el/jstl:

<% pageContext.setAttribute("linefeed", "\n"); %>

Because you cant use \n in el for search and replace strings.

Other use is for copying static final variables to the page context (how no
one spotted this before el was finalised i will never know? or am i missing
somthing?)

Daniel.

> -----Original Message-----
> From: Woodchuck [mailto:[EMAIL PROTECTED]
> Sent: 27 August 2004 18:22
> To: struts
> Subject: philosophical question/poll about Struts/JSTL, scriptlets
>
>
> sorry to bring this up on a Friday...
>
> does everyone here have pure Struts/JSTL jsp pages that is absolutely
> void of scriptlets?
>
> or do you have jsp pages that use a combination of Struts/JSTL and
> scriptlets, all living together harmoniously using whichever method is
> easiest/cleanest?
>
> is mixing Struts/JSTL with traditional scriptlets a bad thing?
>
> i have to say that i would prefer to *not* mix scriptlets with
> Struts/JSTL but in some situations it seems scriptlets is the better
> solution (in terms of code maintainability).  that is, it would be
> easier to use a little snippet of scriptlet here and there instead of
> making a round-about (albeit clever) and more verbose way of doing the
> same thing without scriptlets...
>
> any opinions is welcome!  i want to be able to sleep without nightmares
> about this!!  :)
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Take Yahoo! Mail with you! Get it on your mobile phone.
> http://mobile.yahoo.com/maildemo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to