This is for WebSphere Portal v6.0
(do a google search if you do not know how to create a Tag)
Put your custom jar that contains the Tag classes in:
/opt/IBM/WebSphere/PortalServer/shared/app
Put your TLD files in:
/opt/IBM/WebSphere/AppServer/profiles/<profile>/installedApps/<node>/wps.ear/wps.war/WEB-INF/tld
What I do not understand is how the tld is read. I would have expected to have to register the TLD
in some web.xml file, but that is not the case here. So WebSphere has to be doing this in the background somewhere.
Restart your Portal server, and you can now reference your tag from within your theme.
One HUGE drawback of this solution is that you have to restart the Portal server
if you make an update to your TLD or Tag jar and push them out to their
respective locations.
Try to restart only wps.ear using admin-console or via scripting.
By: Diego Visentin on October 4, 2009
at 11:00 pm
Thanks for the suggestion. I will try that and let you know how it works out.
By: mycrappytechnologyblog on October 5, 2009
at 12:57 am