struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Mawata (JIRA)" <j...@apache.org>
Subject [jira] Created: (WW-3072) Config-browser plugin (2.1.6) properties tab gives the same incorrect list of properties for all actions
Date Fri, 03 Apr 2009 03:14:06 GMT
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.


Mime
View raw message