in repo.tld
<name>page</name>
<tag-class>org.alfresco.web.ui.repo.tag.PageTag</tag-class>
change to your class .
create your PageTag class with same java code as your alfresco version.
in doStartTag(){
out.write("<LINK REL=\"SHORTCUT ICON\" HREF=\"" + reqPath
+ "/icon.ico\" />");
}
//remark in alfresco.war add icon.ico .