You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Chris Mawata (JIRA)" <ji...@apache.org> on 2009/04/03 05:14:06 UTC

[jira] Created: (WW-3072) Config-browser plugin (2.1.6) properties tab gives the same incorrect list of properties for all actions

Config-browser plugin (2.1.6) properties tab gives the same incorrect list of properties for all actions
--------------------------------------------------------------------------------------------------------

                 Key: WW-3072
                 URL: https://issues.apache.org/struts/browse/WW-3072
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.1.6
            Reporter: Chris Mawata
            Priority: Minor


The config broswer in 2.1.6 consistently gives the wrong properties of the action in the properties tab. They are actuall the properties of the corresponging class object
The following is a small demo. Screen shots and patch are attached



input jsp:      \WEB-INF\content\index.jsp

<%@ taglib prefix="s" uri="/struts-tags"%>

<html>
	<head>
		<title>Hello World</title>
	</head>
	<body>
		<h3>
			Enter Your Name
		</h3>
		<div>
			<s:form action="say-hello">
				<s:textfield label="Name:" name="userName" size="30" maxlength="30" />
				<s:submit value="Submit" />
			</s:form>
		</div>
	</body>

</html>

==============
action class -- configuration is by Convention Plug-in

package actions.all;

public class SayHelloAction{

	private static final long serialVersionUID = 1L;

	private String userName;

	public String execute() throws Exception {
		return "success";
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

}

================
Output Jsp (with link to config-browser

<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
	<head>
		<title>Hello Success</title>
	</head>
	<body>
		Hello <s:property value="userName" />
		<br>
		<s:url var="seeConfig" action="index" namespace="/config-browser"></s:url>
		<s:a href="%{seeConfig}">Config-Browser</s:a>
	</body>
</html>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-3072) Config-browser plugin (2.1.6) properties tab gives the same incorrect list of properties for all actions

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

Chris Mawata updated WW-3072:
-----------------------------

    Attachment: fixed.jpg

We now have the single property of the say-hello action

> Config-browser plugin (2.1.6) properties tab gives the same incorrect list of properties for all actions
> --------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3072
>                 URL: https://issues.apache.org/struts/browse/WW-3072
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.6
>            Reporter: Chris Mawata
>            Priority: Minor
>         Attachments: broken shot.jpg, fixed.jpg, ShowConfigAction.java.patch
>
>
> The config broswer in 2.1.6 consistently gives the wrong properties of the action in the properties tab. They are actuall the properties of the corresponging class object
> The following is a small demo. Screen shots and patch are attached
> input jsp:      \WEB-INF\content\index.jsp
> <%@ taglib prefix="s" uri="/struts-tags"%>
> <html>
> 	<head>
> 		<title>Hello World</title>
> 	</head>
> 	<body>
> 		<h3>
> 			Enter Your Name
> 		</h3>
> 		<div>
> 			<s:form action="say-hello">
> 				<s:textfield label="Name:" name="userName" size="30" maxlength="30" />
> 				<s:submit value="Submit" />
> 			</s:form>
> 		</div>
> 	</body>
> </html>
> ==============
> action class -- configuration is by Convention Plug-in
> package actions.all;
> public class SayHelloAction{
> 	private static final long serialVersionUID = 1L;
> 	private String userName;
> 	public String execute() throws Exception {
> 		return "success";
> 	}
> 	public String getUserName() {
> 		return userName;
> 	}
> 	public void setUserName(String userName) {
> 		this.userName = userName;
> 	}
> }
> ================
> Output Jsp (with link to config-browser
> <%@ taglib prefix="s" uri="/struts-tags"%>
> <html>
> 	<head>
> 		<title>Hello Success</title>
> 	</head>
> 	<body>
> 		Hello <s:property value="userName" />
> 		<br>
> 		<s:url var="seeConfig" action="index" namespace="/config-browser"></s:url>
> 		<s:a href="%{seeConfig}">Config-Browser</s:a>
> 	</body>
> </html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-3072) Config-browser plugin (2.1.6) properties tab gives the same incorrect list of properties for all actions

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

Chris Mawata updated WW-3072:
-----------------------------

    Attachment: ShowConfigAction.java.patch

Patch for the ShowConfigAction of Config-Browser Plug-in

> Config-browser plugin (2.1.6) properties tab gives the same incorrect list of properties for all actions
> --------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3072
>                 URL: https://issues.apache.org/struts/browse/WW-3072
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.6
>            Reporter: Chris Mawata
>            Priority: Minor
>         Attachments: ShowConfigAction.java.patch
>
>
> The config broswer in 2.1.6 consistently gives the wrong properties of the action in the properties tab. They are actuall the properties of the corresponging class object
> The following is a small demo. Screen shots and patch are attached
> input jsp:      \WEB-INF\content\index.jsp
> <%@ taglib prefix="s" uri="/struts-tags"%>
> <html>
> 	<head>
> 		<title>Hello World</title>
> 	</head>
> 	<body>
> 		<h3>
> 			Enter Your Name
> 		</h3>
> 		<div>
> 			<s:form action="say-hello">
> 				<s:textfield label="Name:" name="userName" size="30" maxlength="30" />
> 				<s:submit value="Submit" />
> 			</s:form>
> 		</div>
> 	</body>
> </html>
> ==============
> action class -- configuration is by Convention Plug-in
> package actions.all;
> public class SayHelloAction{
> 	private static final long serialVersionUID = 1L;
> 	private String userName;
> 	public String execute() throws Exception {
> 		return "success";
> 	}
> 	public String getUserName() {
> 		return userName;
> 	}
> 	public void setUserName(String userName) {
> 		this.userName = userName;
> 	}
> }
> ================
> Output Jsp (with link to config-browser
> <%@ taglib prefix="s" uri="/struts-tags"%>
> <html>
> 	<head>
> 		<title>Hello Success</title>
> 	</head>
> 	<body>
> 		Hello <s:property value="userName" />
> 		<br>
> 		<s:url var="seeConfig" action="index" namespace="/config-browser"></s:url>
> 		<s:a href="%{seeConfig}">Config-Browser</s:a>
> 	</body>
> </html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-3072) Config-browser plugin (2.1.6) properties tab gives the same incorrect list of properties for all actions

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

Chris Mawata updated WW-3072:
-----------------------------

    Attachment: broken shot.jpg

Before the fix -- always shows the properties of the class object

> Config-browser plugin (2.1.6) properties tab gives the same incorrect list of properties for all actions
> --------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3072
>                 URL: https://issues.apache.org/struts/browse/WW-3072
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.6
>            Reporter: Chris Mawata
>            Priority: Minor
>         Attachments: broken shot.jpg, ShowConfigAction.java.patch
>
>
> The config broswer in 2.1.6 consistently gives the wrong properties of the action in the properties tab. They are actuall the properties of the corresponging class object
> The following is a small demo. Screen shots and patch are attached
> input jsp:      \WEB-INF\content\index.jsp
> <%@ taglib prefix="s" uri="/struts-tags"%>
> <html>
> 	<head>
> 		<title>Hello World</title>
> 	</head>
> 	<body>
> 		<h3>
> 			Enter Your Name
> 		</h3>
> 		<div>
> 			<s:form action="say-hello">
> 				<s:textfield label="Name:" name="userName" size="30" maxlength="30" />
> 				<s:submit value="Submit" />
> 			</s:form>
> 		</div>
> 	</body>
> </html>
> ==============
> action class -- configuration is by Convention Plug-in
> package actions.all;
> public class SayHelloAction{
> 	private static final long serialVersionUID = 1L;
> 	private String userName;
> 	public String execute() throws Exception {
> 		return "success";
> 	}
> 	public String getUserName() {
> 		return userName;
> 	}
> 	public void setUserName(String userName) {
> 		this.userName = userName;
> 	}
> }
> ================
> Output Jsp (with link to config-browser
> <%@ taglib prefix="s" uri="/struts-tags"%>
> <html>
> 	<head>
> 		<title>Hello Success</title>
> 	</head>
> 	<body>
> 		Hello <s:property value="userName" />
> 		<br>
> 		<s:url var="seeConfig" action="index" namespace="/config-browser"></s:url>
> 		<s:a href="%{seeConfig}">Config-Browser</s:a>
> 	</body>
> </html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (WW-3072) Config-browser plugin (2.1.6) properties tab gives the same incorrect list of properties for all actions

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

Chris Mawata reassigned WW-3072:
--------------------------------

    Assignee: Chris Mawata

> Config-browser plugin (2.1.6) properties tab gives the same incorrect list of properties for all actions
> --------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3072
>                 URL: https://issues.apache.org/struts/browse/WW-3072
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.6
>            Reporter: Chris Mawata
>            Assignee: Chris Mawata
>            Priority: Minor
>         Attachments: broken shot.jpg, fixed.jpg, ShowConfigAction.java.patch
>
>
> The config broswer in 2.1.6 consistently gives the wrong properties of the action in the properties tab. They are actuall the properties of the corresponging class object
> The following is a small demo. Screen shots and patch are attached
> input jsp:      \WEB-INF\content\index.jsp
> <%@ taglib prefix="s" uri="/struts-tags"%>
> <html>
> 	<head>
> 		<title>Hello World</title>
> 	</head>
> 	<body>
> 		<h3>
> 			Enter Your Name
> 		</h3>
> 		<div>
> 			<s:form action="say-hello">
> 				<s:textfield label="Name:" name="userName" size="30" maxlength="30" />
> 				<s:submit value="Submit" />
> 			</s:form>
> 		</div>
> 	</body>
> </html>
> ==============
> action class -- configuration is by Convention Plug-in
> package actions.all;
> public class SayHelloAction{
> 	private static final long serialVersionUID = 1L;
> 	private String userName;
> 	public String execute() throws Exception {
> 		return "success";
> 	}
> 	public String getUserName() {
> 		return userName;
> 	}
> 	public void setUserName(String userName) {
> 		this.userName = userName;
> 	}
> }
> ================
> Output Jsp (with link to config-browser
> <%@ taglib prefix="s" uri="/struts-tags"%>
> <html>
> 	<head>
> 		<title>Hello Success</title>
> 	</head>
> 	<body>
> 		Hello <s:property value="userName" />
> 		<br>
> 		<s:url var="seeConfig" action="index" namespace="/config-browser"></s:url>
> 		<s:a href="%{seeConfig}">Config-Browser</s:a>
> 	</body>
> </html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.