> No, it was made on purpose, for your sanity I suggest not to use scriptlets
> ever ;-)
It's a pity : you shouldn't impose your development views on others.
For instance for rapide tests / prototyping scriptlets are really usefull.
Even for full blown webapps, if you use them wisely they can be nice.
Personnally, I've never seen the difference between :
<c:forEach begin="1" end="1000">
blabla
</c:forEach>
and
<%for (int i=0; i<1000; i++) {%>
blabla
<%}%>
Apart from a performance point of view and from a language constructus
duplication (you must learn JSTLs, great.... very interesting...).
Anyway, thanks for the answer !
You're sure you're not gonna change your mind on this subject ? please ? ;)
________________________________
De : Antonio Petrelli <[email protected]>
À : [email protected]; Adrian Gonzalez <[email protected]>
Envoyé le : Mardi 6 Septembre 2011 12h15
Objet : Re: Error using Scriptlet inside tiles:putAttribute
2011/9/6 Adrian Gonzalez <[email protected]>
Hello,
>
>I'm using Tiles 2.2.1 (also tested this issue with 2.2.2).
>
>I cannot use scriptlet code inside tiles jsp tags.
>
>This is because :
>1. Tiles JSP tags inherit from SimpleTag Support class and not from TagSupport
>class.
>2. inside tiles-jsp.tld all tags are marked with
><body-content>scriptless</body-content> and
>not <body-content>JSP</body-content>
>
>This issue makes working with tiles quite a pain (prototyping and testing is
>quite difficult).
>
>Should I create a JIRA ?
>
No, it was made on purpose, for your sanity I suggest not to use scriptlets
ever ;-)
Antonio