struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Łukasz Lenart <lukasz.len...@googlemail.com>
Subject Re: REST in Struts 2 Web Applications
Date Fri, 10 Feb 2012 06:33:26 GMT
2012/2/9 developer researcher <java.developer.researcher@gmail.com>:
> 1. both normal action and restful action in the same web application.

Define struts.rest.namespace as mentioned in the docs

> 2. The URL structure for resources must be:
> - /list/ ==> show a list of resoruces in json format
> - /list/{id} ==> show the resource identified by id

/list/ => implement ListAction.index
/list/{id} => implement ListAction.show


Regards
-- 
Łukasz

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message