*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Problem with jsp:include" Watch "Problem with jsp:include" New topic
Author

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>


or


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



Can I know what is wrong?Please help.

Thanks
Veena


SCJP1.4
"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">
</jsp:include>

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"/>
</jsp:include>


should work. I tested it out on my computer and it works.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with jsp:include