From b489fc6f751638a0ec9af4194f1722ac8d8a2a0d Mon Sep 17 00:00:00 2001 From: "Timothy A. Bish" Date: Thu, 6 Dec 2012 16:40:39 +0000 Subject: [PATCH] fix for: https://issues.apache.org/jira/browse/AMQ-3215 Allow for longer names of destination while still imposing limit before a truncation occurs. git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1417993 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/webapp/WEB-INF/tags/form/short.tag | 2 +- .../src/main/webapp/message.jsp | 208 +++++++++--------- 2 files changed, 105 insertions(+), 105 deletions(-) diff --git a/activemq-web-console/src/main/webapp/WEB-INF/tags/form/short.tag b/activemq-web-console/src/main/webapp/WEB-INF/tags/form/short.tag index ed82a97e17..b628752751 100644 --- a/activemq-web-console/src/main/webapp/WEB-INF/tags/form/short.tag +++ b/activemq-web-console/src/main/webapp/WEB-INF/tags/form/short.tag @@ -21,7 +21,7 @@ text = org.apache.commons.lang.StringEscapeUtils.escapeJavaScript(text); if (length == null) length = 20; - if (text.length() <= 20) { + if (text.length() <= length) { out.print(text); } else { out.println(text.substring(0, 10) + "..." + text.substring(text.length() - 5)); diff --git a/activemq-web-console/src/main/webapp/message.jsp b/activemq-web-console/src/main/webapp/message.jsp index 25143a1f10..500674aeb3 100644 --- a/activemq-web-console/src/main/webapp/message.jsp +++ b/activemq-web-console/src/main/webapp/message.jsp @@ -5,9 +5,9 @@ The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - + http://www.apache.org/licenses/LICENSE-2.0 - + Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -34,90 +34,90 @@ No message could be found for ID - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - +
- Properties -
+ + + + + + - - - - - - - -
+ Properties +
- - + + + + + + + + + + @@ -139,12 +139,12 @@ No message could be found for ID -- Please select -- - + - + @@ -152,25 +152,25 @@ No message could be found for ID -
&messageId=${row.JMSMessageID}&JMSDestinationType=queue&secret=')">Move
- - - - - - - - - - -
- Message Details -
- - + + + + + + + + + + + + + + +
+ Message Details +
+ + @@ -182,4 +182,4 @@ No message could be found for ID