[opencms-dev] cms.include function

Ayvid B ayvid_bh at rediffmail.com
Mon Sep 27 20:29:14 CEST 2004


An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040927/7e42b2dc/attachment.htm>
-------------- next part --------------
  
Hi

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.

For example: 

if(condition x)
    cms.include("file1.jsp")
elseif(condition y)
    cms.include("file2.jsp")
else
   cms.include("file3.jsp")

Could anyone please let me know if this is possible or not.If not then what could be the other option.

Thanks,
Ayvid



More information about the opencms-dev mailing list