<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>Hi
folks,</FONT><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>I am new user.</DIV></FONT>
<DIV><FONT face=Arial size=2>I have just wrote a simple method. I use it in my
frametemplate but, I get an error:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> <FONT face="Times New Roman"
size=3>[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.. </FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman"
size=3></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>Here is a
code:</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman"
size=3></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2>import com.opencms.template.*;<BR>import
com.opencms.file.*;<BR>import com.opencms.core.*;<BR>import
java.util.*;<BR>public class CmsExample5 extends CmsXmlTemplate
{<BR> public Object getCurrentUrl(CmsObject cms, String tagcontent,
A_CmsXmlContent doc,Object userObject) {<BR> return
cms.getRequestContext().getUri();<BR> }<BR> }</FONT></DIV>
<DIV><FONT face=Arial size=2>The class file is in WEB-INF/classes/
folder.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Please, help.</DIV></FONT></BODY></HTML>