Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why Scrptlets aren't allowed

 
satya mahapatra
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,Scriplets aren't allowed for the below mentioned reasons.

1>It will be easy for Web designers to implement other alternatives.

2> Its difiicult to maintain java code in HTML

My doubt is in my 1 yr of experience I have never seen any web designers
using EL or custom tags. They used to give only html prototypes and java devlopers used to implement EL and custom tags. Then why scrptlets are not encourged.

And how it is difficult to mainatain java code inside html??
 
saqib sarwar
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
usually ppl not fallow standard ways of doing things due to their own likeness or used to habits.

scriptlets are very difficult to maintain,

suppose if you i code 50 pages of JSP using scriptlets and later on after 3 year my written code is handed over to you for maintanance or including improvements than you are in real trouble, first of all its very difficult and time consuming for you to learn old logic of application than adding your own logic is another difficult thing.

but instead if i code in tags and EL, you will got a lot of easy understanding and job would be much easier for you.
[ May 09, 2007: Message edited by: saqib sarwar ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've had to maintain some pages using scriptlets. Gave me headaches trying to follow the loops and to find out which closing braces match which opening braces, which part of HTML was in which loop. And the source itself looks dirty. Only tags and EL ${} makes it clean.
 
satya mahapatra
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Saquib and Satou for your response. So I can conclude that

1> According to best practise WebDesigners should implement EL and Custom Tags and for them only these things are introduced. But we are not following best practise

2> And Satou you really clear my doubt how it will be very difficult to maintain scriptlets code. Thanks man.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic