...
Code Block |
---|
title | com.example.actions.HelloWorld |
---|
borderStyle | solid |
---|
|
package com.example.actions;
import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.ParentPackage;
@ParentPackage("customXWorkPackage")
public class HelloWorld extends ActionSupport {
public String execute() {
return SUCCESS;
}
}
|
Configuration reference
Add a constant element to your struts config file to change the value of a configuration setting, like:
Code Block |
---|
|
<constant name="struts.convention.result.path" value="/WEB-INF/mytemplates/"/>
|