• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to include file from anather server  RSS feed

 
usamara
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i bulide a jsp pages using templets and i include 4 pages one for header and one for fotter and one for menue and last one is the page body , the problem is same bages is on anather server , so how chould i include them in me pages , what i doing now is to open a url connection to this pages and read them , and this is a bad sultion in preformance , is there any ather way ?
 
Shawn Bayern
Author
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by usamara:
i bulide a jsp pages using templets and i include 4 pages one for header and one for fotter and one for menue and last one is the page body , the problem is same bages is on anather server , so how chould i include them in me pages , what i doing now is to open a url connection to this pages and read them , and this is a bad sultion in preformance , is there any ather way ?

You can use a combination of the standard <c:import> tag and a custom caching mechanism, like the Jakarta Taglibs "Cache Taglib." See
http://java.sun.com/products/jstl
for JSTL and
http://jakarta.apache.org/taglibs
for Jakarta Taglibs.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!