1

Is there any way to get the current site title in the JSP page?tt

I need it to send the information to a SOAP webservice.

Thanks.

LokiNkc
  • 55
  • 1
  • 9

2 Answers2

1

Ok. I've solved it with this code.

SiteService si= new SiteService();
si.getSite(sakaiProxy.getCurrentSiteId()).getTitle();
LokiNkc
  • 55
  • 1
  • 9
0

Yes, though you'll need to inject the ToolManager API into your application. You then call toolManager.getCurrentPlacement().getContext() to get the Site object, and from there, getTitle().

Steve Swinsburg
  • 592
  • 2
  • 14