> -----Original Message-----
> From: Daniel Perry [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 27, 2004 10:49 AM
> To: Struts Users Mailing List
> Subject: RE: philosophical question/poll about Struts/JSTL, scriptlets
> 
> 
> One thing i would suggest, is that if you are working in a 
> team, and you
> wish to include these really simple one line scriptlets (like 
> the example i
> gave you), then put the scriptlets at the top of the jsp 
> along with the "<%@
> page" type declarations, taglib declarations, etc. It makes 
> it easier for
> the web design people.
> 
> "ignore the crap at the top of the page" and "dont touch any 
> tags you dont
> understand" seems to work as instructions for them :)

I would say that if you do those regularly, and it seems you do... it would be a good 
idea to either put them on a page you include at the top of each page, so they can't 
see it, or jsut create a tag, and then they can use it too...

A difference of philosophy.  I tend to not like doing boilerplate at all.... I'm quite 
pathological about it at times.  Not a good thing all the time... and it slows me down 
on a new project.... then there comes a point when all the boilerplate is done.. and 
then cover your eyes and stop breathing coz the wheels are smoking, and i'm 
considerably faster then most.


> 
> Daniel.
> 
> > -----Original Message-----
> > From: Woodchuck [mailto:[EMAIL PROTECTED]
> > Sent: 27 August 2004 18:48
> > To: Struts Users Mailing List
> > Subject: RE: philosophical question/poll about Struts/JSTL, 
> scriptlets
> >
> >
> >
> > --- 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]
> >
> >
> 
> 
> ---------------------------------------------------------------------
> 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