Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Small doubt with include

 
Pratibha Malhotra
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
<%@ include file="test.html", file="test.html"%>
does not work.

Can we specify two files to be included in one Directive statement
 
Pratibha Malhotra
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Theoritically Actions can accomodate attribute-value pairs but following also does not work
<jsp:include page="test.jsp","test1.jsp"/>
or
<jsp:include page="test.jsp",page="test1.jsp"/>
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65220
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. You need a separate directive or action for each include.
 
Srinivas Mupparapu
Greenhorn
Posts: 14
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can specify only one file with each include directive:
Example: <%@ include file="test.jsp" %>
You can pass parameters to included JSP file using <jsp:include> as follows:
<jsp:include page="paramTest.jsp" >
<jsp aram name="firstName" value="Bush" />
</jsp:include>
Hope this will help you.
[ February 12, 2004: Message edited by: Srinivas Mupparapu ]
[ February 12, 2004: Message edited by: Srinivas Mupparapu ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic