File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Problem with jsp:include Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Problem with jsp:include" Watch "Problem with jsp:include" New topic

Problem with jsp:include

Veena Pointi
Ranch Hand

Joined: Jun 20, 2002
Posts: 442
I am facing problem while including jsp using jsp:standard action

<jsp:include page="a.jsp" flush="true"/>

If I do the above it includes a.jsp,but if i do any of the below it doesnt

<jsp:include page="a.jsp" flush="true">
<jsp:param name="colspan" value="8"/>


<jsp:include page="a.jsp" flush="true">

Can I know what is wrong?Please help.


"Continuous effort - not strength or intelligence - is the key to unlocking our potential."
*Winston Churchill
Richard Golebiowski
Ranch Hand

Joined: May 05, 2010
Posts: 213

<jsp:include page="a.jsp" flush="true">

will fail because there is no parameter. This format can only be used with a parameter.

<jsp:include page="a.jsp" flush="true">
<jsp:param name="colspan" value="8"/>

should work. I tested it out on my computer and it works.
Consider Paul's rocket mass heater.
subject: Problem with jsp:include
Similar Threads
code in div and without div
include a html page in JSP file
who can explain the item to me?
Unable to access message resources through <bean:message> in included jsp
How to include a HTML Page into another HTML page