public class DefaultActionNameBuilder extends AbstractActionNameBuilder
This class strips the word Action from the end of the class name and possibly lowercases the name as well depending on the value of the constant struts.convention.action.name.lowercase. If the constant is set to true, this class will lowercase all action names.
Constructor and Description |
---|
DefaultActionNameBuilder(String lowerCase) |
Modifier and Type | Method and Description |
---|---|
String |
build(String className)
Given the name of the class, this method should build an action name.
|
checkActionName, setActionSuffix, truncateSuffixIfMatches
public DefaultActionNameBuilder(String lowerCase)
public String build(String className)
ActionNameBuilder
className
- The class name.Copyright © 2000–2020 Apache Software Foundation. All rights reserved.