On Wed, 2 Apr 2003, Affan Qureshi wrote:

> Date: Wed, 2 Apr 2003 08:36:31 +0500
> From: Affan Qureshi <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: [OT] Re: A <bean:define> question
>
> Isn't the scriplet free version more confusing/cryptic than the scriplet
> one? I know we should avoid scriplets 110% in JSPs but what about cases
> where it can save some confusion of five tags to do a simple thing?
>
> The reason to avoid scriplets is to allow seperation of page designers and
> developers dependancies but the poor page designer won't make much sense out
> of either of them in this case i think and its better to give him one line
> of confusion than 5.
>
> Intersted to know your comments.
>

It's not just the page author you should be worrying about -- the page
compiler is affected as well.  Pages with no scriptlets allow the compiler
to create much better executable code (including lifting the 64k limit on
method size that really affects pages with lots of custom tags).

Personally, I prefer the JSTL syntax for stuff like this:

  <c:set var="varName" value="${requestScope.httpParameter}"/>

> Regards,
> Affan

Craig

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

Reply via email to