Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C797C200C44 for ; Mon, 27 Mar 2017 10:35:48 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C6284160B85; Mon, 27 Mar 2017 08:35:48 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 195CC160B5D for ; Mon, 27 Mar 2017 10:35:47 +0200 (CEST) Received: (qmail 57463 invoked by uid 500); 27 Mar 2017 08:35:47 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 57450 invoked by uid 99); 27 Mar 2017 08:35:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Mar 2017 08:35:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id BEE621803A6 for ; Mon, 27 Mar 2017 08:35:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id B2M98uUKcikA for ; Mon, 27 Mar 2017 08:35:45 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id C34395FB7A for ; Mon, 27 Mar 2017 08:35:45 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 3AB91E0596 for ; Mon, 27 Mar 2017 08:35:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id B3BF924065 for ; Mon, 27 Mar 2017 08:35:41 +0000 (UTC) Date: Mon, 27 Mar 2017 08:35:41 +0000 (UTC) From: "fairy (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4772) Convention Plugin can't use ${message} MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 27 Mar 2017 08:35:48 -0000 [ https://issues.apache.org/jira/browse/WW-4772?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1594283= 8#comment-15942838 ]=20 fairy commented on WW-4772: --------------------------- Hi ,Thanks for your help very much, I have fixed the problem with your meth= od. Summary point of attention=EF=BC=9A action name and jsp name and url mapping relationship a. if our action name have two or more words, action name every word ha= d better First name is capitalized,like HelloWorldAction. # it is not required,because the constant will convert action n= ame to lower case b. if our action name is HelloWorldAction,so our jsp name must be split= between words with '-' , like this hello-world.jsp c. the Suffix default is action ,so our URL must be is hello-world.acti= on or hello-world=20 # the URL mapping should be hello-world.action ,It should be noted= that it is not helloworld.action d.Set the root path for the Convention plug-in location view resource #default is content if you like, you can modify the root path to= views > Convention Plugin can't use ${message} > -------------------------------------- > > Key: WW-4772 > URL: https://issues.apache.org/jira/browse/WW-4772 > Project: Struts 2 > Issue Type: Bug > Components: Plugin - Convention > Affects Versions: 2.5.10 > Environment: Windows10+JDK7.0_80+tomcat7.0.76 > Reporter: fairy > Assignee: Lukasz Lenart > Labels: easyfix > Fix For: 2.5.next > > Attachments: struts2-007-Convention-Plugin-HaveActionCode.zip > > > today i fount the plugin maybe have an issue. > {code} > public class HelloWorldAction extends ActionSupport { > =09private String message; > =09public String getMessage() { > =09=09return message; > =09} > =09public void setMessage(String message) { > =09=09this.message =3D message; > =09} > =09public String execute() { > =09=09message =3D "Hello World, I come from Action Code"; > =09=09return SUCCESS; > =09} > } > {code} > HelloWorld.jsp > {code} > This is ${message} // the message is null and the action can't be cal= led. > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)