[opencms-dev] Dynamic content/html question

Richard Friedman richard_friedman at osadvisors.com
Thu Oct 3 16:36:26 CEST 2002


Is it possible in 5.0 with the Flex/JSP integration to use a JSP page
and the JSP mechanism for invoking a method.



-----Original Message-----
From: owner-opencms-dev at www.opencms.org
[mailto:owner-opencms-dev at www.opencms.org] On Behalf Of Bart Elberg
Sent: Thursday, October 03, 2002 9:54 AM
To: opencms-dev at www.opencms.org
Subject: Re: [opencms-dev] Dynamic content/html question

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