aboutsummaryrefslogtreecommitdiff
path: root/id.server/src/at/gv/egovernment/moa/id/auth/builder/Builder.java
diff options
context:
space:
mode:
authorharald.bratko <harald.bratko@d688527b-c9ab-4aba-bd8d-4036d912da1d>2005-10-21 16:20:46 +0000
committerharald.bratko <harald.bratko@d688527b-c9ab-4aba-bd8d-4036d912da1d>2005-10-21 16:20:46 +0000
commitd964bdfe182c23d8bafbd4f3b73a1527a8377ded (patch)
treeaf06fa85f9d052b2e196bdfac9fdd59095798fa2 /id.server/src/at/gv/egovernment/moa/id/auth/builder/Builder.java
parentd72f8684b8464d6acb65e376b2a0450fddbcfc31 (diff)
downloadmoa-id-spss-d964bdfe182c23d8bafbd4f3b73a1527a8377ded.tar.gz
moa-id-spss-d964bdfe182c23d8bafbd4f3b73a1527a8377ded.tar.bz2
moa-id-spss-d964bdfe182c23d8bafbd4f3b73a1527a8377ded.zip
*** empty log message ***
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@526 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'id.server/src/at/gv/egovernment/moa/id/auth/builder/Builder.java')
-rw-r--r--id.server/src/at/gv/egovernment/moa/id/auth/builder/Builder.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/id.server/src/at/gv/egovernment/moa/id/auth/builder/Builder.java b/id.server/src/at/gv/egovernment/moa/id/auth/builder/Builder.java
index e5bbaa585..29e0badc7 100644
--- a/id.server/src/at/gv/egovernment/moa/id/auth/builder/Builder.java
+++ b/id.server/src/at/gv/egovernment/moa/id/auth/builder/Builder.java
@@ -1,6 +1,7 @@
package at.gv.egovernment.moa.id.auth.builder;
import at.gv.egovernment.moa.id.BuildException;
+import at.gv.egovernment.moa.util.StringUtils;
/**
* Base class for HTML/XML builders providing commonly useful functions.
@@ -11,7 +12,7 @@ import at.gv.egovernment.moa.id.BuildException;
public class Builder {
/**
- * Replaces a special tag in an XML or HTML template by a value.
+ * Replaces oll occurrences of a special tag in an XML or HTML template by a value.
* @param htmlTemplate template
* @param tag special tag
* @param value value replacing the tag
@@ -24,7 +25,8 @@ public class Builder {
throw new BuildException(
"builder.01",
new Object[] {"&lt;" + tag.substring(1, tag.length() - 1) + "&gt;"});
- return template.substring(0, index) + value + template.substring(index + tag.length());
+ return StringUtils.replaceAll(template, tag, value);
+// return template.substring(0, index) + value + template.substring(index + tag.length());
}
}