Changeset 6890 for ComponentRegistry/branches/ComponentRegistry-2.0/ComponentRegistry/src/main/webapp/compRegConfig.jsp
- Timestamp:
- 01/08/16 09:12:35 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/branches/ComponentRegistry-2.0/ComponentRegistry/src/main/webapp/compRegConfig.jsp
r6885 r6890 1 1 <%-- Configuration hosted next to the front end index page, from which it is loaded --%> 2 2 <%@ page import="java.net.URI" %> 3 <%@ page import="clarin.cmdi.componentregistry.rest.ComponentRegistryRestService" %> 3 4 <% 4 5 final String loglevelParam = request.getParameter("loglevel"); … … 9 10 loglevel = "info" ; 10 11 } 12 13 final String appUrl = ComponentRegistryRestService.getApplicationBaseURI(getServletContext(), request); 11 14 %> 12 15 { … … 14 17 "cors": false, 15 18 "REST": { 16 "url": "<%= app lication.getInitParameter("eu.clarin.cmdi.componentregistry.serviceRootUrl")%>"19 "url": "<%= appUrl %>" 17 20 }, 18 21 "backEndVersion": "${project.version}", … … 20 23 "deploy": { 21 24 "path": "<%= 22 URI.create(application.getInitParameter("eu.clarin.cmdi.componentregistry.serviceRootUrl")) 23 .getPath() //at same URL as app, so simply take path 25 URI.create(appUrl).getPath() //at same URL as app, so simply take path 24 26 %>" 25 27 }
Note: See TracChangeset
for help on using the changeset viewer.