You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "samarjit samanta (JIRA)" <ji...@apache.org> on 2011/03/02 17:06:37 UTC

[jira] Created: (WW-3585) Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables

Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables
--------------------------------------------------------------------------------------------------------------

                 Key: WW-3585
                 URL: https://issues.apache.org/jira/browse/WW-3585
             Project: Struts 2
          Issue Type: Bug
          Components: Value Stack
    Affects Versions: 2.2.1
         Environment: Windows 7 Struts2.2.1 basic jars found in blank.war plus code convention/annotation jar and struts2-config-browser-plugin-2.2.1.jar
            Reporter: samarjit samanta
            Priority: Minor


When pass a few variables in url and pupulate the same in action class and System.out.print() those variables, I can see them getting populated and prints tomcat  console. But the same action class when debugging using browser `debug=browser` the action class variables are null or remain in initialized value and 'null' gets printed on tomcat console corresponding to that variable. The variable gets displayed in #parameters.
 However, the other two debugging technique like `debug=console` shows the values in action which is normal. Also `debug=xml` also shows the value in action and in tomcat console also it is printed properly.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (WW-3585) Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables

Posted by "Maurizio Cucchiara (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maurizio Cucchiara closed WW-3585.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3

Moved the debug interceptor to the bottom of the stack

> Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3585
>                 URL: https://issues.apache.org/jira/browse/WW-3585
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.2.1, 2.2.1.1
>         Environment: Windows 7 Struts2.2.1 basic jars found in blank.war plus code convention/annotation jar and struts2-config-browser-plugin-2.2.1.jar
>            Reporter: samarjit samanta
>            Assignee: Maurizio Cucchiara
>            Priority: Minor
>             Fix For: 2.3
>
>
> When pass a few variables in url and pupulate the same in action class and System.out.print() those variables, I can see them getting populated and prints tomcat  console. But the same action class when debugging using browser `debug=browser` the action class variables are null or remain in initialized value and 'null' gets printed on tomcat console corresponding to that variable. The variable gets displayed in #parameters.
>  However, the other two debugging technique like `debug=console` shows the values in action which is normal. Also `debug=xml` also shows the value in action and in tomcat console also it is printed properly.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Assigned: (WW-3585) Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables

Posted by "Maurizio Cucchiara (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maurizio Cucchiara reassigned WW-3585:
--------------------------------------

    Assignee: Maurizio Cucchiara

> Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3585
>                 URL: https://issues.apache.org/jira/browse/WW-3585
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Value Stack
>    Affects Versions: 2.2.1
>         Environment: Windows 7 Struts2.2.1 basic jars found in blank.war plus code convention/annotation jar and struts2-config-browser-plugin-2.2.1.jar
>            Reporter: samarjit samanta
>            Assignee: Maurizio Cucchiara
>            Priority: Minor
>
> When pass a few variables in url and pupulate the same in action class and System.out.print() those variables, I can see them getting populated and prints tomcat  console. But the same action class when debugging using browser `debug=browser` the action class variables are null or remain in initialized value and 'null' gets printed on tomcat console corresponding to that variable. The variable gets displayed in #parameters.
>  However, the other two debugging technique like `debug=console` shows the values in action which is normal. Also `debug=xml` also shows the value in action and in tomcat console also it is printed properly.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (WW-3585) Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables

Posted by "Maurizio Cucchiara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001493#comment-13001493 ] 

Maurizio Cucchiara commented on WW-3585:
----------------------------------------

I'm not sure I understand what you mean. It would look like a user group question.
Could you provide some more details?
How can we reproduce it?

> Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3585
>                 URL: https://issues.apache.org/jira/browse/WW-3585
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Value Stack
>    Affects Versions: 2.2.1
>         Environment: Windows 7 Struts2.2.1 basic jars found in blank.war plus code convention/annotation jar and struts2-config-browser-plugin-2.2.1.jar
>            Reporter: samarjit samanta
>            Priority: Minor
>
> When pass a few variables in url and pupulate the same in action class and System.out.print() those variables, I can see them getting populated and prints tomcat  console. But the same action class when debugging using browser `debug=browser` the action class variables are null or remain in initialized value and 'null' gets printed on tomcat console corresponding to that variable. The variable gets displayed in #parameters.
>  However, the other two debugging technique like `debug=console` shows the values in action which is normal. Also `debug=xml` also shows the value in action and in tomcat console also it is printed properly.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3585) Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13044493#comment-13044493 ] 

Hudson commented on WW-3585:
----------------------------

Integrated in Struts2 #311 (See [https://builds.apache.org/hudson/job/Struts2/311/])
    WW-3585 - moved the debug interceptor to the bottom of the stack

mcucchiara : 
Files : 
* /struts/struts2/trunk/core/src/main/resources/struts-default.xml


> Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3585
>                 URL: https://issues.apache.org/jira/browse/WW-3585
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.2.1, 2.2.1.1
>         Environment: Windows 7 Struts2.2.1 basic jars found in blank.war plus code convention/annotation jar and struts2-config-browser-plugin-2.2.1.jar
>            Reporter: samarjit samanta
>            Assignee: Maurizio Cucchiara
>            Priority: Minor
>             Fix For: 2.3
>
>
> When pass a few variables in url and pupulate the same in action class and System.out.print() those variables, I can see them getting populated and prints tomcat  console. But the same action class when debugging using browser `debug=browser` the action class variables are null or remain in initialized value and 'null' gets printed on tomcat console corresponding to that variable. The variable gets displayed in #parameters.
>  However, the other two debugging technique like `debug=console` shows the values in action which is normal. Also `debug=xml` also shows the value in action and in tomcat console also it is printed properly.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (WW-3585) Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables

Posted by "samarjit samanta (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002725#comment-13002725 ] 

samarjit samanta commented on WW-3585:
--------------------------------------

I wanted to say that debug=browser is buggy as the parameters send in the URL. Suppose I have this URL 'test.action?submitdata=xyz&debug=browser'. Now in the debug browser view if i expand the "actions" link it shows submitdata=null. But if i expand the "parameters" link it shows submitdata=xyz. 

This problem exists in struts2.1.8 and also in struts 2.2.1.

Repro steps:
1. Create a simple action class with one member variable called submitdata, create getters and setters. 
public class CreateScreenAC extends ActionSupport{
private String submitdata;

	public String execute(){
		System.out.println("submitdata="+submitdata);
		return SUCCESS;
	}
	
	public String getSubmitdata() {
		return submitdata;
	}
	public void setSubmitdata(String submitdata) {
		this.submitdata = submitdata;
	}

}

2. I configured result type as stream
3. User URL http://localhost:8082/timesheet/createscreen.action?submitdata=hello. Observation: tomcat console:submitdata=hello
4. http://localhost:8082/timesheet/createscreen.action?submitdata=hello&debug=browser. Observation: tomcat console:submitdata=null

Expected: http://localhost:8082/timesheet/createscreen.action?submitdata=hello&debug=browser. Observation: tomcat console:submitdata=hello

> Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3585
>                 URL: https://issues.apache.org/jira/browse/WW-3585
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Value Stack
>    Affects Versions: 2.2.1
>         Environment: Windows 7 Struts2.2.1 basic jars found in blank.war plus code convention/annotation jar and struts2-config-browser-plugin-2.2.1.jar
>            Reporter: samarjit samanta
>            Priority: Minor
>
> When pass a few variables in url and pupulate the same in action class and System.out.print() those variables, I can see them getting populated and prints tomcat  console. But the same action class when debugging using browser `debug=browser` the action class variables are null or remain in initialized value and 'null' gets printed on tomcat console corresponding to that variable. The variable gets displayed in #parameters.
>  However, the other two debugging technique like `debug=console` shows the values in action which is normal. Also `debug=xml` also shows the value in action and in tomcat console also it is printed properly.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (WW-3585) Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables

Posted by "samarjit samanta (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002776#comment-13002776 ] 

samarjit samanta commented on WW-3585:
--------------------------------------

Yes this works without any change. I just tested this case and it works.

> Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3585
>                 URL: https://issues.apache.org/jira/browse/WW-3585
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.2.1, 2.2.1.1
>         Environment: Windows 7 Struts2.2.1 basic jars found in blank.war plus code convention/annotation jar and struts2-config-browser-plugin-2.2.1.jar
>            Reporter: samarjit samanta
>            Assignee: Maurizio Cucchiara
>            Priority: Minor
>
> When pass a few variables in url and pupulate the same in action class and System.out.print() those variables, I can see them getting populated and prints tomcat  console. But the same action class when debugging using browser `debug=browser` the action class variables are null or remain in initialized value and 'null' gets printed on tomcat console corresponding to that variable. The variable gets displayed in #parameters.
>  However, the other two debugging technique like `debug=console` shows the values in action which is normal. Also `debug=xml` also shows the value in action and in tomcat console also it is printed properly.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (WW-3585) Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables

Posted by "Maurizio Cucchiara (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maurizio Cucchiara updated WW-3585:
-----------------------------------

          Component/s:     (was: Value Stack)
                       Core Interceptors
    Affects Version/s: 2.2.1.1

> Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3585
>                 URL: https://issues.apache.org/jira/browse/WW-3585
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.2.1, 2.2.1.1
>         Environment: Windows 7 Struts2.2.1 basic jars found in blank.war plus code convention/annotation jar and struts2-config-browser-plugin-2.2.1.jar
>            Reporter: samarjit samanta
>            Assignee: Maurizio Cucchiara
>            Priority: Minor
>
> When pass a few variables in url and pupulate the same in action class and System.out.print() those variables, I can see them getting populated and prints tomcat  console. But the same action class when debugging using browser `debug=browser` the action class variables are null or remain in initialized value and 'null' gets printed on tomcat console corresponding to that variable. The variable gets displayed in #parameters.
>  However, the other two debugging technique like `debug=console` shows the values in action which is normal. Also `debug=xml` also shows the value in action and in tomcat console also it is printed properly.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3585) Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables

Posted by "Maurizio Cucchiara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13030642#comment-13030642 ] 

Maurizio Cucchiara commented on WW-3585:
----------------------------------------

Hi guys,
what do you think about moving the debug interceptor to the bottom of the stack? 
Beyond the issue, I think it is more reasonable.

> Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3585
>                 URL: https://issues.apache.org/jira/browse/WW-3585
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.2.1, 2.2.1.1
>         Environment: Windows 7 Struts2.2.1 basic jars found in blank.war plus code convention/annotation jar and struts2-config-browser-plugin-2.2.1.jar
>            Reporter: samarjit samanta
>            Assignee: Maurizio Cucchiara
>            Priority: Minor
>
> When pass a few variables in url and pupulate the same in action class and System.out.print() those variables, I can see them getting populated and prints tomcat  console. But the same action class when debugging using browser `debug=browser` the action class variables are null or remain in initialized value and 'null' gets printed on tomcat console corresponding to that variable. The variable gets displayed in #parameters.
>  However, the other two debugging technique like `debug=console` shows the values in action which is normal. Also `debug=xml` also shows the value in action and in tomcat console also it is printed properly.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (WW-3585) Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables

Posted by "Maurizio Cucchiara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002744#comment-13002744 ] 

Maurizio Cucchiara commented on WW-3585:
----------------------------------------

OK, I get your point.

> Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3585
>                 URL: https://issues.apache.org/jira/browse/WW-3585
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Value Stack
>    Affects Versions: 2.2.1
>         Environment: Windows 7 Struts2.2.1 basic jars found in blank.war plus code convention/annotation jar and struts2-config-browser-plugin-2.2.1.jar
>            Reporter: samarjit samanta
>            Assignee: Maurizio Cucchiara
>            Priority: Minor
>
> When pass a few variables in url and pupulate the same in action class and System.out.print() those variables, I can see them getting populated and prints tomcat  console. But the same action class when debugging using browser `debug=browser` the action class variables are null or remain in initialized value and 'null' gets printed on tomcat console corresponding to that variable. The variable gets displayed in #parameters.
>  However, the other two debugging technique like `debug=console` shows the values in action which is normal. Also `debug=xml` also shows the value in action and in tomcat console also it is printed properly.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (WW-3585) Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables

Posted by "Maurizio Cucchiara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002758#comment-13002758 ] 

Maurizio Cucchiara commented on WW-3585:
----------------------------------------

If no one have a better idea I'd suggest you the following configuration (simply create your own stack, then move debug interceptor down): In the event that it works we could consider to change  the struts-default.xml.

<package name="debug-default" abstract="true" extends="struts-default">
        <interceptors>
            <interceptor-stack name="debug-stack">
                <interceptor-ref name="exception"/>
                <interceptor-ref name="alias"/>
                <interceptor-ref name="servletConfig"/>
                <interceptor-ref name="i18n"/>
                <interceptor-ref name="prepare"/>
                <interceptor-ref name="chain"/>
                <interceptor-ref name="scopedModelDriven"/>
                <interceptor-ref name="modelDriven"/>
                <interceptor-ref name="fileUpload"/>
                <interceptor-ref name="checkbox"/>
                <interceptor-ref name="multiselect"/>
                <interceptor-ref name="staticParams"/>
                <interceptor-ref name="actionMappingParams"/>
                <interceptor-ref name="params">
                    <param name="excludeParams">dojo\..*,^struts\..*</param>
                </interceptor-ref>
                <interceptor-ref name="conversionError"/>
                <interceptor-ref name="validation">
                    <param name="excludeMethods">input,back,cancel,browse</param>
                </interceptor-ref>
                <interceptor-ref name="workflow">
                    <param name="excludeMethods">input,back,cancel,browse</param>
                </interceptor-ref>
                <interceptor-ref name="debugging"/>
            </interceptor-stack>
        </interceptors>
        <default-interceptor-ref name="debug-stack"/>
    </package>

<package name="example" namespace="/example" extends="debug-default">
     <action name="createscreen" class="untitled.example.CreateScreenAC">
            ...
        </action>
</package>


> Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3585
>                 URL: https://issues.apache.org/jira/browse/WW-3585
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Value Stack
>    Affects Versions: 2.2.1
>         Environment: Windows 7 Struts2.2.1 basic jars found in blank.war plus code convention/annotation jar and struts2-config-browser-plugin-2.2.1.jar
>            Reporter: samarjit samanta
>            Assignee: Maurizio Cucchiara
>            Priority: Minor
>
> When pass a few variables in url and pupulate the same in action class and System.out.print() those variables, I can see them getting populated and prints tomcat  console. But the same action class when debugging using browser `debug=browser` the action class variables are null or remain in initialized value and 'null' gets printed on tomcat console corresponding to that variable. The variable gets displayed in #parameters.
>  However, the other two debugging technique like `debug=console` shows the values in action which is normal. Also `debug=xml` also shows the value in action and in tomcat console also it is printed properly.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (WW-3585) Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables

Posted by "samarjit samanta (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002740#comment-13002740 ] 

samarjit samanta commented on WW-3585:
--------------------------------------

Yes right, because I wanted to debug. It will be convenient if browser debug mode gets fixed as i find this is the most convenient of all the three debugging modes.

> Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3585
>                 URL: https://issues.apache.org/jira/browse/WW-3585
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Value Stack
>    Affects Versions: 2.2.1
>         Environment: Windows 7 Struts2.2.1 basic jars found in blank.war plus code convention/annotation jar and struts2-config-browser-plugin-2.2.1.jar
>            Reporter: samarjit samanta
>            Priority: Minor
>
> When pass a few variables in url and pupulate the same in action class and System.out.print() those variables, I can see them getting populated and prints tomcat  console. But the same action class when debugging using browser `debug=browser` the action class variables are null or remain in initialized value and 'null' gets printed on tomcat console corresponding to that variable. The variable gets displayed in #parameters.
>  However, the other two debugging technique like `debug=console` shows the values in action which is normal. Also `debug=xml` also shows the value in action and in tomcat console also it is printed properly.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (WW-3585) Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables

Posted by "Maurizio Cucchiara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002734#comment-13002734 ] 

Maurizio Cucchiara commented on WW-3585:
----------------------------------------

I'm pretty sure you are launching the app with devMode enabled. Could you try to disable it?
<constant name="struts.devMode" value="false"/>

> Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3585
>                 URL: https://issues.apache.org/jira/browse/WW-3585
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Value Stack
>    Affects Versions: 2.2.1
>         Environment: Windows 7 Struts2.2.1 basic jars found in blank.war plus code convention/annotation jar and struts2-config-browser-plugin-2.2.1.jar
>            Reporter: samarjit samanta
>            Priority: Minor
>
> When pass a few variables in url and pupulate the same in action class and System.out.print() those variables, I can see them getting populated and prints tomcat  console. But the same action class when debugging using browser `debug=browser` the action class variables are null or remain in initialized value and 'null' gets printed on tomcat console corresponding to that variable. The variable gets displayed in #parameters.
>  However, the other two debugging technique like `debug=console` shows the values in action which is normal. Also `debug=xml` also shows the value in action and in tomcat console also it is printed properly.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3585) Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables

Posted by "Maurizio Cucchiara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13044307#comment-13044307 ] 

Maurizio Cucchiara commented on WW-3585:
----------------------------------------

Starting from the next version there is no more need to use that workaround.

> Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3585
>                 URL: https://issues.apache.org/jira/browse/WW-3585
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.2.1, 2.2.1.1
>         Environment: Windows 7 Struts2.2.1 basic jars found in blank.war plus code convention/annotation jar and struts2-config-browser-plugin-2.2.1.jar
>            Reporter: samarjit samanta
>            Assignee: Maurizio Cucchiara
>            Priority: Minor
>             Fix For: 2.3
>
>
> When pass a few variables in url and pupulate the same in action class and System.out.print() those variables, I can see them getting populated and prints tomcat  console. But the same action class when debugging using browser `debug=browser` the action class variables are null or remain in initialized value and 'null' gets printed on tomcat console corresponding to that variable. The variable gets displayed in #parameters.
>  However, the other two debugging technique like `debug=console` shows the values in action which is normal. Also `debug=xml` also shows the value in action and in tomcat console also it is printed properly.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Issue Comment Edited: (WW-3585) Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables

Posted by "Maurizio Cucchiara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002734#comment-13002734 ] 

Maurizio Cucchiara edited comment on WW-3585 at 3/4/11 5:44 PM:
----------------------------------------------------------------

I'm pretty sure you are launching the app with devMode enabled. Could you try to disable it?
<constant name="struts.devMode" value="false"/>
or alternatively you could avoid using the debug Interceptor. Please take a look at [1].

[1] http://struts.apache.org/2.x/docs/debugginginterceptor.html

      was (Author: maurizio.cucchiara):
    I'm pretty sure you are launching the app with devMode enabled. Could you try to disable it?
<constant name="struts.devMode" value="false"/>
  
> Struts2 debugging using debug=browser in url does not populate url parameters in action class member variables
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3585
>                 URL: https://issues.apache.org/jira/browse/WW-3585
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Value Stack
>    Affects Versions: 2.2.1
>         Environment: Windows 7 Struts2.2.1 basic jars found in blank.war plus code convention/annotation jar and struts2-config-browser-plugin-2.2.1.jar
>            Reporter: samarjit samanta
>            Priority: Minor
>
> When pass a few variables in url and pupulate the same in action class and System.out.print() those variables, I can see them getting populated and prints tomcat  console. But the same action class when debugging using browser `debug=browser` the action class variables are null or remain in initialized value and 'null' gets printed on tomcat console corresponding to that variable. The variable gets displayed in #parameters.
>  However, the other two debugging technique like `debug=console` shows the values in action which is normal. Also `debug=xml` also shows the value in action and in tomcat console also it is printed properly.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira