mirror of
https://github.com/apache/struts.git
synced 2026-08-07 15:46:57 +00:00
WW-2926 Port rest-showcase to use convention plugin
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@728041 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -19,8 +19,6 @@ import com.opensymphony.xwork2.ValidationAwareSupport;
|
||||
@Results({
|
||||
@Result(name="success", type="redirectAction", params = {"actionName" , "orders"})
|
||||
})
|
||||
@Namespace("")
|
||||
@InterceptorRef("restDefaultStack")
|
||||
public class OrdersController extends ValidationAwareSupport implements ModelDriven<Object>, Validateable{
|
||||
|
||||
private Order model = new Order();
|
||||
|
||||
@@ -27,8 +27,10 @@
|
||||
"http://struts.apache.org/dtds/struts-2.0.dtd">
|
||||
|
||||
<struts>
|
||||
<!-- Overwrite Convention -->
|
||||
<constant name="struts.convention.action.suffix" value="Controller"/>
|
||||
<constant name="struts.convention.action.mapAllMatches" value="true"/>
|
||||
<constant name="struts.convention.default.parent.package" value="rest-default"/>
|
||||
|
||||
<constant name="struts.convention.package.locators" value="example"/>
|
||||
</struts>
|
||||
Reference in New Issue
Block a user