From a49000d94bed4cce1944d41cd861d6fff32e4f5c Mon Sep 17 00:00:00 2001 From: jensp Date: Mon, 15 Aug 2011 15:56:39 +0000 Subject: [PATCH] =?UTF-8?q?Namespaces=20f=C3=BCr=20XML=20korrgiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.libreccm.org/ccm/trunk@1062 8810af33-2d31-482b-a856-94f89814c4df --- .../PublicPersonalProfilesServlet.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ccm-cms-publicpersonalprofile/src/com/arsdigita/cms/publicpersonalprofile/PublicPersonalProfilesServlet.java b/ccm-cms-publicpersonalprofile/src/com/arsdigita/cms/publicpersonalprofile/PublicPersonalProfilesServlet.java index 037f2436e..a1bfa8a35 100644 --- a/ccm-cms-publicpersonalprofile/src/com/arsdigita/cms/publicpersonalprofile/PublicPersonalProfilesServlet.java +++ b/ccm-cms-publicpersonalprofile/src/com/arsdigita/cms/publicpersonalprofile/PublicPersonalProfilesServlet.java @@ -42,6 +42,8 @@ public class PublicPersonalProfilesServlet extends BaseApplicationServlet { Logger.getLogger( PublicPersonalProfilesServlet.class); private static final String PREVIEW = "preview"; + private static final String PPP_NS = + "http://www.arsdigita.com/PublicPersonalProfile/1.0"; private final PublicPersonalProfileConfig config = PublicPersonalProfiles. getConfig(); @@ -164,16 +166,14 @@ public class PublicPersonalProfilesServlet extends BaseApplicationServlet { (PublicPersonalProfile) DomainObjectFactory. newInstance(profiles.getDataObject()); Element profileElem = - root.newChildElement("ppp:profile", - "http://www,arsdigita.com/publicPersonalProfile/1.0"); + root.newChildElement("ppp:profile", PPP_NS); GenericPerson owner = profile.getOwner(); if (owner == null) { throw new IllegalStateException( "Failed to get owner of profile."); } Element profileOwnerName = profileElem.newChildElement( - "ppp:ownerName", - "http://www,arsdigita.com/publicPersonalProfile/1.0"); + "ppp:ownerName", PPP_NS); profileOwnerName.setText(owner.getFullName()); createNavigation(profile, root, navPath);