• 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
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Small doubt with include

 
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"/>
 
Marshal
Posts: 67463
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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 ]
 
He was giving me directions and I was powerless to resist. I cannot resist this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic