Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Carry content onto another page?

 
Tim frank
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, im quite new to creating dynamic pages with JSP. At the moment I'm kinda getting the hand of it, I've managed to do thing such as carry content description into other pages etc.

Im currently playing around with tables. At the moment I have 3 tables, and I want to put 2 of these tables onto another page in jsp. Is there anyway of doing this without creating a seperate jsp file and copying and pasting the tables onto it.

For example, my page is currently called tables. could i simply put in a hyperlink something like <a href="tables.jsp?page2"> I'm not being terribly clear here i'm sorry. But help would be appriciated
Regards, Tim
[ April 15, 2006: Message edited by: Bear Bibeault ]
 
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
If the same content appears on more than one page, it can be factored out into a separate file that can be included on both pages.
 
Tim frank
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You what now?

How would i do that?
 
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
Use either the include directive (for a translation-time include) or the include action (for a run-time include). They are covered in the JSP FAQ.
 
Tim frank
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where abouts? I can't see it
 
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
2nd entry in the 3rd section.
[ April 16, 2006: Message edited by: Bear Bibeault ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic