lsc*_*hin 6

<@s.property value="com.opensymphony.xwork2.ActionContext.name" />
Run Code Online (Sandbox Code Playgroud)

要么

<@s.set var="actionName" value="com.opensymphony.xwork2.ActionContext.name" />

<#-- Use as -->

<@s.property value="actionName" />

<#-- Or other FreeMarker Tags -->
Run Code Online (Sandbox Code Playgroud)

要么

在中创建一个getter action class,例如

public String getActionName() {
    return ActionContext.getContext().getName();
}
Run Code Online (Sandbox Code Playgroud)

<@s.property value="actionName" />
Run Code Online (Sandbox Code Playgroud)