[opencms-dev] Is it possible

Tom Miller tom at hostwebase.com
Tue Oct 10 22:50:08 CEST 2006


It is possible for me to embed or write Opemcms taglib 
direct into an JSP file instead of extract the information
from the JSP file into a html file and then included the 
html file in the JSP.  
Like the one I have done below.  (search for cms)


I want able to leave the orginal JSP alone and just add the
OPencms code to edit.  Is this possible?


            </tr>
            <tr bgcolor="3D4958">
              <td colspan="7"> </td>
            </tr>
          </table>
        </div></td>
      <td width="8" rowspan="7" bgcolor="3D4958"> </td>
    </tr>
    <tr>
      <td valign="top" bgcolor="2B3543"
class="newstext"><br>
        <cms:include file="newsa.html" element="body" 
editable="true" />
      </td>
    </tr>
    <tr>
      <td valign="middle" bgcolor="2B3543"
class="newstext"><img src="graphics/dot_4.gif" width="187"
height="1"></td>
    </tr>
<%
  if ((isManager != null) && isManager.equals("N")) {
%>
    <tr>
      <td valign="top" bgcolor="2B3543"
class="newstext">
        <br><cms:include file="newsb.html" element="body" 
editable="true" />
      </td>
    </tr>
    <tr>
      <td valign="middle" bgcolor="2B3543"
class="newstext"><img src="graphics/dot_4.gif" width="187"
height="1"></td>
    </tr>
<%
  } else if ((isManager != null) && isManager.equals("Y")) {
%>
    <tr>
      <td valign="top" bgcolor="2B3543" class="newstext">
        <br><cms:include file="newsc.html" element="body" 
editable="true" />
      </td>
    </tr>
    <tr>
      <td colspan="5" valign="middle" bgcolor="3D4958"
class="newstext"> </td>
    </tr>
<%
  }
%>
  </table>




More information about the opencms-dev mailing list