Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以在 JSP 页面中获取当前站点标题?tt
我需要它将信息发送到 SOAP Web 服务。
谢谢。
好的。我已经用这段代码解决了。
SiteService si= new SiteService(); si.getSite(sakaiProxy.getCurrentSiteId()).getTitle();
是的,尽管您需要将 ToolManager API 注入您的应用程序。然后调用toolManager.getCurrentPlacement().getContext()以获取 Site 对象,并从那里获取getTitle().
toolManager.getCurrentPlacement().getContext()
getTitle()