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 :)

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]

Reply via email to