aspose file tools*
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 Spring in Action this week in the Spring 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: 3479

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: 3479

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: 61426
    
  67

Vastly superior.


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

Joined: Nov 08, 2003
Posts: 3479

Bear Bibeault wrote:Vastly superior.

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

Joined: Jan 10, 2002
Posts: 61426
    
  67

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?