From 3321f99643edc5ebc4bd8f4b9eaea90744fc6d60 Mon Sep 17 00:00:00 2001 From: Daniel Kulp Date: Wed, 5 Feb 2014 15:19:44 -0500 Subject: [PATCH 1/2] [AMQ-4174] Redirect back to queue overview after delete/moving message Patch from Robert Balent applied --- .../org/apache/activemq/web/controller/CopyMessage.java | 2 +- .../org/apache/activemq/web/controller/DeleteMessage.java | 2 +- .../org/apache/activemq/web/controller/MoveMessage.java | 2 +- activemq-web-console/src/main/webapp/message.jsp | 6 +++--- .../java/org/apache/activemq/web/DestinationFacade.java | 4 ++++ 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/activemq-web-console/src/main/java/org/apache/activemq/web/controller/CopyMessage.java b/activemq-web-console/src/main/java/org/apache/activemq/web/controller/CopyMessage.java index 3a82898873..178eadd998 100644 --- a/activemq-web-console/src/main/java/org/apache/activemq/web/controller/CopyMessage.java +++ b/activemq-web-console/src/main/java/org/apache/activemq/web/controller/CopyMessage.java @@ -49,7 +49,7 @@ public class CopyMessage extends DestinationFacade implements Controller { log.warn("No queue named: " + getPhysicalDestinationName()); } } - return redirectToBrowseView(); + return redirectToDestinationView(); } public String getMessageId() { diff --git a/activemq-web-console/src/main/java/org/apache/activemq/web/controller/DeleteMessage.java b/activemq-web-console/src/main/java/org/apache/activemq/web/controller/DeleteMessage.java index 1f060fe05e..d9bf009be2 100644 --- a/activemq-web-console/src/main/java/org/apache/activemq/web/controller/DeleteMessage.java +++ b/activemq-web-console/src/main/java/org/apache/activemq/web/controller/DeleteMessage.java @@ -48,7 +48,7 @@ public class DeleteMessage extends DestinationFacade implements Controller { log.warn("No queue named: " + getPhysicalDestinationName()); } } - return redirectToBrowseView(); + return redirectToDestinationView(); } public String getMessageId() { diff --git a/activemq-web-console/src/main/java/org/apache/activemq/web/controller/MoveMessage.java b/activemq-web-console/src/main/java/org/apache/activemq/web/controller/MoveMessage.java index 2155382261..5a4916580b 100644 --- a/activemq-web-console/src/main/java/org/apache/activemq/web/controller/MoveMessage.java +++ b/activemq-web-console/src/main/java/org/apache/activemq/web/controller/MoveMessage.java @@ -49,7 +49,7 @@ public class MoveMessage extends DestinationFacade implements Controller { log.warn("No queue named: " + getPhysicalDestinationName()); } } - return redirectToBrowseView(); + return redirectToDestinationView(); } public String getMessageId() { diff --git a/activemq-web-console/src/main/webapp/message.jsp b/activemq-web-console/src/main/webapp/message.jsp index be4e14fcd7..cc5ff0c19e 100644 --- a/activemq-web-console/src/main/webapp/message.jsp +++ b/activemq-web-console/src/main/webapp/message.jsp @@ -133,10 +133,10 @@ No message could be found for ID &messageId=${row.JMSMessageID}&secret=">Delete + &messageId=${row.JMSMessageID}&secret=">Delete - &messageId=${row.JMSMessageID}&JMSDestinationType=queue&secret=')">Copy + &messageId=${row.JMSMessageID}&JMSDestinationType=queue&secret=')">Copy