*
The moose likes JSP and the fly likes Including  contents of an external page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Including  contents of an external page" Watch "Including  contents of an external page" New topic
Author

Including contents of an external page

Jay Damon
Ranch Hand

Joined: Jul 31, 2001
Posts: 282
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

Joined: Dec 11, 2004
Posts: 13410

Look into JSTL's <c:import ../> tag.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
jQuery in Action, 2nd edition
 
subject: Including contents of an external page
 
Similar Threads
A jsp deployment problem
forward() and include() methods
Regarding Jsp Include
manipulating url returned from jsp include
Jsp page is not displaying anything