You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Commented) (JIRA)" <ji...@apache.org> on 2011/11/28 21:51:40 UTC
[jira] [Commented] (WW-3072) Config-browser plugin (2.1.6)
properties tab gives the same incorrect list of properties for all actions
[ https://issues.apache.org/jira/browse/WW-3072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158747#comment-13158747 ]
Lukasz Lenart commented on WW-3072:
-----------------------------------
I think, it isn't relevant any more ...
> 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/jira/browse/WW-3072
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.1.6
> Reporter: Chris Mawata
> Assignee: Chris Mawata
> Priority: Minor
> Attachments: ShowConfigAction.java.patch, broken shot.jpg, fixed.jpg
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira