• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Small doubt with include  RSS feed

 
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"/>
 
Sheriff
Posts: 67259
170
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.
 
Greenhorn
Posts: 15
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
Boost this thread!