--- Daniel Perry <[EMAIL PROTECTED]> wrote: > 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?)
hehe, yea the lack of easy way to access static final variables using Struts/JSTL is what brought me to this state, lol. something so easy in scriptlets but needs quite a bit of coding to do in non-scriptlet form by comparison. > > Daniel. > _______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]