META-INF.resources.configuration.friendly_url_separator_company_configuration.jsp Maven / Gradle / Ivy
The newest version!
<%--
/**
* SPDX-FileCopyrightText: (c) 2024 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
--%>
<%@ include file="/init.jsp" %>
<%
FriendlyURLSeparatorCompanyConfigurationDisplayContext friendlyURLSeparatorCompanyConfigurationDisplayContext = (FriendlyURLSeparatorCompanyConfigurationDisplayContext)request.getAttribute(FriendlyURLSeparatorCompanyConfigurationDisplayContext.class.getName());
JSONObject errorsJSONObject = friendlyURLSeparatorCompanyConfigurationDisplayContext.getErrorsJSONObject();
String errorMessage = errorsJSONObject.getString("errorMessage");
%>
<%
JSONArray friendlyURLSeparatorsJSONArray = friendlyURLSeparatorCompanyConfigurationDisplayContext.getConfigurableFriendlyURLSeparatorsJSONArray();
for (int i = 0; i < friendlyURLSeparatorsJSONArray.length(); i++) {
JSONObject friendlyURLSeparatorJSONObject = friendlyURLSeparatorsJSONArray.getJSONObject(i);
%>
<%= friendlyURLSeparatorCompanyConfigurationDisplayContext.getSampleURL() %>
" name="<%= friendlyURLSeparatorJSONObject.getString("name") %>" value="<%= friendlyURLSeparatorJSONObject.getString("value") %>" />
<%
}
%>