[ 
https://issues.apache.org/jira/browse/WW-3072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart updated WW-3072:
------------------------------

    Fix Version/s: 2.3.x
    
> 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: Lukasz Lenart
>            Priority: Minor
>             Fix For: 2.3.x
>
>         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

        

Reply via email to