Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP include  RSS feed

 
Mike Yu
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
If I have a test.html file in a webserver (e.g., IBM HTTP server), and a test1.jsp file in an application server (e.g., IBM WebSphere App Server), is it possible to use <jsp:include... or <%@include ... to include test.html in test.jsp?
 
Shawn Bayern
Author
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mike Yu:
Hi,
If I have a test.html file in a webserver (e.g., IBM HTTP server), and a test1.jsp file in an application server (e.g., IBM WebSphere App Server), is it possible to use <jsp:include... or <%@include ... to include test.html in test.jsp?

You can use JSTL's standard <c:import> tag to import content from any absolute URL. For more information on JSTL, see http://java.sun.com/products/jstl
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!