Meaningless Drivel is fun!*
The moose likes JSP and the fly likes Small doubt with include Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Small doubt with include" Watch "Small doubt with include" New topic
Author

Small doubt with include

Pratibha Malhotra
Ranch Hand

Joined: Dec 21, 2003
Posts: 199
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<br /> <br />Sun Certified Java Programmer<br />SCEA 1.4 (In Progress)<br />~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />"Many of life's failures are people who did not realize how close they were to success when they gave up!!"
Pratibha Malhotra
Ranch Hand

Joined: Dec 21, 2003
Posts: 199
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

Joined: Jan 10, 2002
Posts: 60752
    
  65

No. You need a separate directive or action for each include.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Srinivas Mupparapu
Greenhorn

Joined: Feb 12, 2004
Posts: 14

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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Small doubt with include
 
Similar Threads
Can't make .htc behavior work in websphere
Can't make .htc behavior work in websphere
include directive doubt
JSP include
Can't make .htc behavior work in websphere