[
https://issues.apache.org/jira/browse/WW-4772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart resolved WW-4772.
-------------------------------
Resolution: Not A Problem
You are using wrong action name, camel case actions are converted into urls
with dashes:
{noformat}
com.example.actions.MainAction -> /main
com.example.actions.products.Display -> /products/display
com.example.struts.company.details.ShowCompanyDetailsAction ->
/company/details/show-company-details
{noformat}
so in your example {{/hello-world}} and JSP must also be named
{{hello-world.jsp}} or {{success.jsp}} or {{hello-world-success.jsp}}
> 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 {
> 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;
> }
> }
> {code}
> HelloWorld.jsp
> {code}
> This is ${message} // the message is null and the action can't be called.
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)