Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Including contents of an external page

 
Jay Damon
Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to include the contents of an external, i.e. another web site page, in a JSP? I was asked and, after looking at the JSP include action and directive documentation, it appears that only relative URLs may be specified. At this point, it seems to me that the only solution is to read the external page in the controlling servlet and then make the page text available to the JSP. Does anyone else have a better solution?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look into JSTL's <c:import ../> tag.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic