Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4772

Convention Plugin can't use ${message}

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.5.10
    • Fix Version/s: 2.5.12
    • Component/s: Plugin - Convention
    • Labels:
    • Environment:

      Windows10+JDK7.0_80+tomcat7.0.76

    • Docs Text:
      Struts 2.5.10.1

      Description

      today i fount the plugin maybe have an issue.

      public class HelloWorldAction extends ActionSupport {
      	private String message;
      
      	public String getMessage() {
      		return message;
      	}
      
      	public void setMessage(String message) {
      		this.message = message;
      	}
      
      	public String execute() {
      		message = "Hello World, I come from Action Code";
      		return SUCCESS;
      	}
      }
      

      HelloWorld.jsp

       This is  ${message}   // the message is null and the action can't be called.
      

        Attachments

          Activity

            People

            • Assignee:
              lukaszlenart Lukasz Lenart
              Reporter:
              fairy fairy
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: