File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Carry content onto another page? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Carry content onto another page?" Watch "Carry content onto another page?" New topic
Author

Carry content onto another page?

Tim frank
Greenhorn

Joined: Mar 07, 2006
Posts: 25
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

Joined: Jan 10, 2002
Posts: 60774
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Tim frank
Greenhorn

Joined: Mar 07, 2006
Posts: 25
You what now?

How would i do that?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

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

Joined: Mar 07, 2006
Posts: 25
Where abouts? I can't see it
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

2nd entry in the 3rd section.
[ April 16, 2006: Message edited by: Bear Bibeault ]
 
 
subject: Carry content onto another page?
 
Similar Threads
Jsp and java script
MS Access getting on my nerves
jsp showing directory structure
Creating new users dynamically
bbcodes