2014-05-27 8:21 GMT+02:00 Antonio Sánchez :
>
>
> El mar 27 may 2014 08:04:48 CEST, Lukasz Lenart escribió:
>>
>>
>> 2014-05-26 18:00 GMT+02:00 Antonio Sánchez :
>>>
>>>
>>> That's not working for me.
>>>
>>> OK: /person -> com.myapp.actions.PersonAction#execute (SUCCESS) ->
>>> person.jsp
>>>
>>>
El mar 27 may 2014 08:04:48 CEST, Lukasz Lenart escribió:
2014-05-26 18:00 GMT+02:00 Antonio Sánchez :
That's not working for me.
OK: /person -> com.myapp.actions.PersonAction#execute (SUCCESS) ->
person.jsp
FAILS: /person-edit -> com.myapp.action.PersonAction#edit ->
person-edit.jsp
(FA
2014-05-26 18:00 GMT+02:00 Antonio Sánchez :
> That's not working for me.
>
> OK: /person -> com.myapp.actions.PersonAction#execute (SUCCESS) ->
> person.jsp
>
> FAILS: /person-edit -> com.myapp.action.PersonAction#edit -> person-edit.jsp
> (FAILS even annotating with @Action)
Hm... right, I'm
i have variable named as var1 in value stack. I can get the value of var1
in my jsp as
Say its value is childVariable.
Now value stack has further stored the value of childVariable. I need to
retrieve the value of childVariable from value stack.
Something like this but that does not work.
Update:
It works annotating action methods:
OK: /person-edit -> #Action("person-edit")
com.myapp.action.PersonAction#edit -> person-edit.jsp (WORKS with @Action)
However, automatic method mapping is missing and explicit annotation is
required.
This way, I guess it is not practical using Co
Thanks, let me try that.
El 26/05/14 13:16, Christoph Nenning escribió:
I'm trying to define a generic/abstract action and extend or
instantiate it with specific actions.
Say a generic/abstract CRUDaction and have UserAction, InvoiceAction
etc... to instantiate/extend it.
I don't see the way
That's not working for me.
OK: /person -> com.myapp.actions.PersonAction#execute (SUCCESS) ->
person.jsp
FAILS: /person-edit -> com.myapp.action.PersonAction#edit ->
person-edit.jsp (FAILS even annotating with @Action)
INSTEAD:/person-edit -> NO ACTION METHOD CALLED -> person-edit.jsp D
>
> I'm trying to define a generic/abstract action and extend or
> instantiate it with specific actions.
>
> Say a generic/abstract CRUDaction and have UserAction, InvoiceAction
> etc... to instantiate/extend it.
>
> I don't see the way to do this using Conventions. I believe it is
> possible
When you use convention you don't have to use annotation:
/person -> com.myapp.actions.Person#execute (SUCCESS) -> person.jsp
/person-edit -> com.myapp.action.Person#edit -> person-edit.jsp
/person-submit -> com.myapp.actions.Person#submit -> person-submit.jsp
|| person-input.jsp
2014-05-26 11:
I'm trying to define a generic/abstract action and extend or
instantiate it with specific actions.
Say a generic/abstract CRUDaction and have UserAction, InvoiceAction
etc... to instantiate/extend it.
I don't see the way to do this using Conventions. I believe it is
possible using wildcards.
10 matches
Mail list logo