Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Include remote pages in JSP

843840Jun 23 2008
My application structure is as following
Apache/htdocs/index.php

Apache/htdocs/styles/css.css
Apache/htdocs/sscripts/js,js
Apache/htdocs/themes/meta.html
Apache/htdocs/themes/header.html
Apache/htdocs/themes/footer.html

Apache/htdocs/MANY_OTHER_FILES_DIRECTORIES

Tomcat/webapps/project1
Tomcat/webapps/project2
I am running Tomcat through Apache with "mod_jk.so" on port 8080.



I am trying to find a way to include "meta.html" in <head></head> and "header.html" after <body> tag.





Is it possible? If no, then how can I have common parts in JSP pages rather than writing those parts directly in the page?


I have 2 files because <head></head> in JSP page willl have extra code besides the code in "meta.html" hence 2 pages.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 21 2008
Added on Jun 23 2008
0 comments
206 views