Did you take a look at the REST plugin docs?
http://struts.apache.org/2.x/docs/rest-plugin.html . The REST plugin
will automatically map certain URL to action methods (and parameters)

musachy

On Thu, Jan 8, 2009 at 10:14 AM, Frans Thamura <fr...@meruvian.org> wrote:
> what do you mean of param???
>
> still dont get, can explain more deeply
>
> i want to know
>
> how can only with 1 result can create all REST thing, create,delete, list
>
>
>
> F
>
> On Thu, Jan 8, 2009 at 9:30 PM, Musachy Barroso <musa...@gmail.com> wrote:
>> Those params are the params to the result, in this case
>> "redirectAction", which needs a "actionName" param.
>>
>> musachy
>>
>> On Thu, Jan 8, 2009 at 7:37 AM, Frans Thamura <fr...@meruvian.org> wrote:
>>> hi all
>>>
>>> i am looking at the REST example and got several thing that i need all
>>> of your time to help me out
>>>
>>> i got this
>>>
>>> @Results({
>>>    @Result(name="success", type="redirectAction", params =
>>> {"actionName" , "orders"})
>>> })
>>> public class OrdersController implements ModelDriven<Object>, Validateable{
>>>
>>>
>>>
>>> i still dont get how can this controller can produce the link like
>>>
>>> http://localhost:8080/TestWeb/orders/3
>>> http://localhost:8080/TestWeb/orders/3/edit
>>> http://localhost:8080/TestWeb/orders/6/deleteConfirm
>>>
>>>
>>> is thie @Result means for params = {"actionName" , "orders"})
>>>
>>> will make the /orders/number/action
>>>
>>> so the view for /3/edit will need orders-edit.jsp
>>>
>>> the /6/delete will need orders-delete.jsp
>>>
>>> any idea all
>>>
>>>
>>>
>>> --
>>> --
>>> Frans Thamura
>>> Meruvian
>>> One Stop Java and Enterprise OSS Provider
>>> Technopreneurship, Training, Internship, Outsourcing and Corporate
>>> Competency Center
>>>
>>> Mobile: +62 855 7888 699
>>> Blog & Profile: http://frans.thamura.info
>>>
>>> Training JENI, Medallion (Alfresco, Liferay dan Compiere).. buruan...
>>> URL: http://www.meruvian.com
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>
>>>
>>
>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>
>
>
> --
> --
> Frans Thamura
> Meruvian
> One Stop Java and Enterprise OSS Provider
> Technopreneurship, Training, Internship, Outsourcing and Corporate
> Competency Center
>
> Mobile: +62 855 7888 699
> Blog & Profile: http://frans.thamura.info
>
> Training JENI, Medallion (Alfresco, Liferay dan Compiere).. buruan...
> URL: http://www.meruvian.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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

Reply via email to