<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=194354318-27092004><FONT face=Arial
color=#0000ff size=2>I believe you can do this with the JSTL tag library- look
at the Core tags.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=194354318-27092004><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN
class=194354318-27092004><!--StartFragment --> <PRE><%-- Declare the core library --%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%-- Simple if conditions --%>
<c:if test='${param.p == "someValue"}'>
<cms:include ...> </PRE><PRE> </c:if>
</PRE><PRE>check out <A href="http://javaalmanac.com/egs/javax.servlet.jsp.jstl.core/if.html">http://javaalmanac.com/egs/javax.servlet.jsp.jstl.core/if.html</A></PRE><PRE> </PRE><PRE>Tim</PRE></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Ayvid B [mailto:ayvid_bh@rediffmail.com]
<BR><B>Sent:</B> Monday, September 27, 2004 2:30 PM<BR><B>To:</B> The OpenCms
mailing list<BR><B>Subject:</B> [opencms-dev] cms.include
function<BR></FONT><BR></DIV>
<DIV></DIV>
<P> <BR>Hi<BR><BR>I want to use cms.include function with the paramater as the
jsp file name but with the conditional if statement around the
cms.include.<BR><BR>For example: <BR><BR>if(condition x)<BR>
cms.include("file1.jsp")<BR>elseif(condition y)<BR>
cms.include("file2.jsp")<BR>else<BR> cms.include("file3.jsp")<BR><BR>Could
anyone please let me know if this is possible or not.If not then what could be
the other option.<BR><BR>Thanks,<BR>Ayvid<BR><BR></P><BR><BR><A
href="http://clients.rediff.com/signature/track_sig.asp" target=_blank><IMG
hspace=0
src="http://ads.rediff.com/RealMedia/ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@Bottom"
border=0 NOSEND="1"></A> </BODY></HTML>