my dog learned polymorphism*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Classsic Vs Simple? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Classsic Vs Simple?" Watch "Classsic Vs Simple?" New topic
Author

Classsic Vs Simple?

Boobalan Jegathesan
Greenhorn

Joined: Jan 08, 2007
Posts: 17
Hi,

Can anyone differentiate classic custom tags and simple custom tags?


Thanks<br />Boobalan.(SCJP1.4)
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

They use different interfaces, so it's bit long to explain.
Simple tags are easier to make
The best would be to try to make the same tag from scratch with both version.

Simple tag handlers also include "Tag Files" which are 100% jsp tags.

Sorry for not answering your question.
You can still refer the following part of the JSP specification:
JSP.7.1.3 Classic Tag Handlers
JSP.7.1.5 Simple Tag Handlers


[My Blog]
All roads lead to JavaRanch
Boobalan Jegathesan
Greenhorn

Joined: Jan 08, 2007
Posts: 17
I know the funtionality and I executed the same.Some experts might have specific reasons why do we have 2 kinds of custom tags in jsp.thats hwy i asked.....
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Some experts might have specific reasons why do we have 2 kinds of custom tags in jsp

That's because Classic Tags were a pain in the neck to make. Simple tags' interfaces are much more easier to deal with. And as I said in the previous post, you can even make simple tags as jsp, not as java classes.

Sorry about the confusion.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Classsic Vs Simple?
 
Similar Threads
JspFragment
exams on j2eecertificate.com
Default value for body-content inside tld
Tags
simple tags Vs Classic tags