Hi,
I used a subclass of TemplateLink from T2.1 to add the /c/c to the end of my
path that gets me picked up by Google. (c can be any character).
I switched this to a subclass of TemplateURI to achieve the same effect.
I use
"tool.request.link=co.uk.roamware.rwsite.util.template.GoogleTemplateLink"
in my TR.props
Here tis;
public class GoogleTemplateLink extends TemplateURI {
public void setTemplate(String t) {
super.setTemplate(t);
List googleext = new ArrayList();
googleext.add("r");
googleext.add("w");
add(0, googleext);
}
}
But I get this exception.
Horrible Exception: java.lang.NoSuchMethodError:
org.apache.turbine.Turbine.getDefaultServerData()Lorg/apache/turbine/util/Se
rverData;
at org.apache.turbine.util.uri.BaseURI.<init>(BaseURI.java:117)
at org.apache.turbine.util.uri.TurbineURI.<init>(TurbineURI.java:111)
at org.apache.turbine.util.uri.TemplateURI.<init>(TemplateURI.java:86)
at
com.roamware.rwsite.util.template.GoogleTemplateLink.<init>(GoogleTemplateLi
nk.java:15)
Line 15 is the class declaration. Which makes me think I have misunderstood
something fundemental. Any hints?
Regards,
David Wynter
roamware Ltd.
(+44) (0) 208 922 7539 B.
(+44) (0) 7879 605 706 M.
www.roamware.co.uk
mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]