[opencms-dev] Dynamic content/html question

Bart Elberg belberg at idealcorp.com
Thu Oct 3 15:54:25 CEST 2002


Certainly!!  That's what OpenCms is all about.  Refer to Section 2 of 
the documentation.  In short:

  - Create an XML template for the desired web page.  The dynamic part 
can be the entire page if desired.
  - Create a class that extends CmsXmlTemplate.
  - Implement the getContent method in this class and call your HTML 
generating method. Set the
    dynamic part of the template.
  - Create a "page" file in OpenCms that refers to the template and the 
new class.
  - Put the new class where OpenCms (and your servlet server) can find it.

Viola! a dynamic web page.  Have fun.

-- 
Bart Elberg
I.D.E.A.L. Technology Corporation
http://www.idealcorp.com

-------------------------------------------
Aleksandar Lukic wrote:

>Hi,
>
>I have my own Java method that generate html content (method return html).
>How can I integrate it in opencms to be showed as content in my cms page?
>
>Thanks in advance.
>
>Aleksandar Lukic
>National Bank Of Yugoslavia
>
>
>





More information about the opencms-dev mailing list