All Downloads are FREE. Search and download functionalities are using the official Maven repository.

initial-content.apps.rested.components.properties.edit.jsp Maven / Gradle / Ivy

The newest version!
<%--
/************************************************************************
 **     $Date: $
 **   $Source: $
 **   $Author: $
 ** $Revision: $
 ************************************************************************/
--%><%
%><%@page session="false" contentType="text/html; charset=utf-8" %><%
%><%@page import="java.io.*,
                  java.net.*,
									javax.jcr.*,
									org.apache.sling.api.resource.*,
                  utils.*" 
%><%
%><%@ taglib prefix="sling" uri="http://sling.apache.org/taglibs/sling/1.0" %><%
%><%

	PropertyIterator properties = null;
	String requestPath = slingRequest.getRequestPathInfo().getResourcePath();
	String content = requestPath;
	if (resource instanceof NonExistingResource) {
		content = requestPath.substring (0, requestPath.indexOf ('.'));
	}
	else {
		properties = currentNode.getProperties();
	}

%>
<% if (properties != null) { for (;properties.hasNext();) { Property p = properties.nextProperty(); String name = p.getName(); if (p.isMultiple() == true) continue; if (name.equals("jcr:data")) continue; String value = p.getString(); if (name.startsWith("jcr:")) { %>
<%=value%>
<% } else { %>
<% } } } %>
<% String error = request.getParameter("error"); if (error != null) { %>
× Error while saving data! <%= error %>

You may have to login before making any changes.

<% } %>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy