diff --git a/core/src/main/java/org/apache/struts2/interceptor/debugging/DebuggingInterceptor.java b/core/src/main/java/org/apache/struts2/interceptor/debugging/DebuggingInterceptor.java index 6791f81dd..10fdcf4df 100644 --- a/core/src/main/java/org/apache/struts2/interceptor/debugging/DebuggingInterceptor.java +++ b/core/src/main/java/org/apache/struts2/interceptor/debugging/DebuggingInterceptor.java @@ -71,7 +71,7 @@ import java.util.Map; *
  • command - Tests an OGNL expression and returns the * string result. Only used by the OGNL console.
  • *
  • browser Shows field values of an object specified in the - * object parameter (#context by default). When the object + * object parameter (action by default). When the object * parameters is set, the '#' character needs to be escaped to '%23'. Like * debug=browser&object=%23parameters
  • * @@ -214,8 +214,9 @@ public class DebuggingInterceptor extends AbstractInterceptor { new PreResultListener() { public void beforeResult(ActionInvocation inv, String actionResult) { String rootObjectExpression = getParameter(OBJECT_PARAM); - if (rootObjectExpression == null) - rootObjectExpression = "top"; + if (rootObjectExpression == null) { + rootObjectExpression = "action"; + } String decorate = getParameter(DECORATE_PARAM); ValueStack stack = (ValueStack) ctx.get(ActionContext.VALUE_STACK); Object rootObject = stack.findValue(rootObjectExpression);