This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Page tag for File include

 
Salmany Yasser
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to include JSP file in the main JSP using this tag, the problem is I get a translation error at compilation time when using a String variable containing the file name instead of using explicit physical file name.
is ther any solution for this problem to get a generic page that can includes many files according to parameter sent from the servlet ?
this works perfectly :
<%@ include file="file_name.jsp" %>
this generates JSP translate not found :
<%@ include file=" <%= variable_name %>" %>
 
Faisal Khan
Ranch Hand
Posts: 285
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Salmany Yasser:
<%@ include file=" <%= variable_name %>" %>

You can not user real time expressions with the include file command, you will have to use the following:
<jsp:include page="<%=variable_name%>" />
HTH
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic