This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes Do Tag files hold advantages over JSP include? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Do Tag files hold advantages over JSP include?" Watch "Do Tag files hold advantages over JSP include?" New topic
Author

Do Tag files hold advantages over JSP include?

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Hey,
Does Tag files has any advantages over JSP fragments included via JSP include?
Thanks for help and time.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Yes.
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Like what?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Think about how they're different: a tag has arguments and all that goes along with them. They're also namespaced, which may add additional structural and semantic information. They're also (marginally) more work, for the same reasons.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Vastly superior.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Bear Bibeault wrote:Vastly superior.

Would please you tell us in which ways?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Just think about it for a minute...
  • Are there formal semantics for include files?
  • How do you pass information to an include file? Is it clear?
  • Can you document this information?
  • Can you assign types this information?
  • Is there a tool that can create documentation for the include files?
  • Yadda yadda yaddsa...
  •  
    It is sorta covered in the JavaRanch Style Guide.
     
    subject: Do Tag files hold advantages over JSP include?
     
    Similar Threads
    Error in counting replies?
    Programming HTML content inside Custom Tag Handler
    Need your answers !!
    JSP AND JAVA Servlet interview
    include directive VS Include Tag