Hi,
yes it is possible, this will include the result of another.jsp into
your page:
<%
if(true) {
%>
<%@ include file="another.jsp" %>
<%
}
%>
however if you want to use the "include page"
try using <jsp:include page="relativeURL" />
but beware that it will be unparsed ie it will just put all the contents
of the file pointed to by the relativeURL into your page which is fine
if the relativeURL is html or text but can cause errors if it is another
JSP.
Karl
PS For more info there is a [EMAIL PROTECTED] list
Rupesh Choubey wrote:
>
>
>
> Is it possible to conditionally include another jsp within a
> scriptlet...for example..
>
> <% if (true) { %>
> <%@ include page=..............%>
> } %>
>
> it does not work for me....if there is a solution, does it work for
> both page include and file includes???
>
>
> Please let me know if possible....Thanks.
>
> Rupesh
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html