This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can I include a file(.html) in jsp dynamically.

 
Maghvendra Singh
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<BODY>
<%
String replyPage = request.getParameter("replyPage");
%>
<%@ include file = "replyPage" %>
<FORM METHOD=POST ACTION="submitReply.jsp">
<CENTER><TEXTAREA NAME="reply" ROWS="10" COLS="50"></TEXTAREA></CENTER>
<INPUT TYPE="submit">
</FORM>
</BODY>
In line no. 5 I wish to include .html file dynamically.
I m getting the name of the file as part of query string.
In our case I m holding the file name in variable "replyPage".
Maghvendra.
------------------
 
Harish Kashyap
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use :

<jsp:include file="include.htm" flush="true" />
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic