File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Construcing a JSP via JSP:include

 
Zein Nunna
Ranch Hand
Posts: 245
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I just wanted to know if I should be using JSP include to piece together pages? I find it's fine, but does become cumbersome if you are piecing togther a lot of pages together.

My question, is there a better way of doing what I do, as I have alot of repeated items in each page I have.

Thanks in advance,
Zein
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64185
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As of JSP 2.0, tag files are a much better mechanism than include. Especially if data is going to be shared between the main page and the sub-pages.
 
Zein Nunna
Ranch Hand
Posts: 245
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear,

Are tage files Tag Libraries?
Any ideas where I can get more inf/tutorials on tag files.

Thanks for your help
Zein
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64185
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a link to the JSP 2.0 Specification in the JSP FAQ.

Basically, tag files are a means to easily create custom actions (tags) using JSP files rather than Java classes.
 
Daniel Amadei
Ranch Hand
Posts: 94
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try Tiles

I believe it does what you want to do in a elegant way.

Daniel
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64185
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Daniel Amadei:
Try Tiles


Ummm, well, I'd advise against adopting something so horribly over-complicated for something so very simple.
 
Zein Nunna
Ranch Hand
Posts: 245
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cheers guys,
Thanks for your help, I'll look into it.

Regard
Zein
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic