• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

custom tags

 
Ranch Hand
Posts: 481
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
While studying, I am starting to grow a strong dislike towards custom tags and EL as well. Good luck!
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic