• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

custom tags

 
Karu Raj
Ranch Hand
Posts: 481
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all

i really dont understand custom tags ..

it is so tough and i am scared of it for projects .


do help me
 
Patrick Williams
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While studying, I am starting to grow a strong dislike towards custom tags and EL as well. Good luck!
 
K Bala
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Patrick Williams:
While studying, I am starting to grow a strong dislike towards custom tags and EL as well. Good luck!


OMG! Is that so? I just finished EL and agree that it is a lengthy topic and you have to remember so much stuff. My Next chapter is on Custom Tags and I read here that it is a very important topic for the exam.

I am new to JSP - so I assumed its taking me time to learn the concepts. But looks like its the same experience with many here.

Alright, wish me good luck too!
 
vipul patel
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

There is nothing to fear of EL or custom tags. They are really easy things. For beginners, EL is confusing because they dont know the context in which is is applied. Do read the specification from sun site.

I would just like to give you a hint about EL:

EL is used for accessing "scope attributes/implicit objects" with minimum syntax overhead. Think EL as special way to access those things which is friendly for a non-programmer.

For custom tags:
Think it as a link between your pure Java OO code to your JSP page. It is invented just to make clear seperation between JSP and JAVA. Custom tags are way to invoke your java code from JSP which is somewhere on the server.

all these are (EL/Custom Tags) basically refined 'View' techniques. In Web-tier,

1. View suppose to contain only presentation logic. Not heavy java code.
2. So, View would have only scripting-like things. Tradionally, it used to have <% JAVA CODE %> scriptlets which was terrible for non-coders. So EL/Custom Tags basically remove those things from your page.


I would recon beginners: Try converting existing <% %> scriptlet, JSPs into EL/Custom tag based JSPs. After few conversions, you would be fine.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic