[opencms-dev] How to run method

Ivan Jelenic ivan.jelenic at nbs.yu
Mon May 19 09:42:02 CEST 2003


Hi folks,

I am new user.
I have just wrote a simple method. I use it in my frametemplate but, I get an error:

    [frametemplate] ??? com.opencms.core.CmsException: 23 Could not call user method. Detailed error: User method getCurrentUrl() was not found in class com.opencms.template.CmsXmlTemplate.. 

Here is a code:

import com.opencms.template.*;
import com.opencms.file.*;
import com.opencms.core.*;
import java.util.*;
public class CmsExample5 extends CmsXmlTemplate {
 public Object getCurrentUrl(CmsObject cms, String tagcontent, A_CmsXmlContent doc,Object userObject) {
  return cms.getRequestContext().getUri();
  }
 }
The class file is in WEB-INF/classes/  folder.

Please, help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20030519/ef11d559/attachment.html>


More information about the opencms-dev mailing list