I'm having a problem using Struts/Convention/REST together/
I have a class that looks like this
public class PostsController implements Preparable,
ModelDriven<List<PostViewModel>>
{
}
with two 'action' methods
@Action(result...@result(name="newpost", location="newpost")})
public String editNew()
{
return "newpost";
}
@Action(result...@result(name="posts", location="posts")})
public String index()
{
return "posts";
}
Originally I only had the index method and it worked fine. After
adding the editNew method the index method has stopped working (the
editNew method works fine).
If I comment out the @Action above the editNew method then the index
method starts working (and the editNew stops working).
Depending on the method that's not working the error I get is "No
result defined for action com.mantiso.jsblog.actions.PostsController
and result newpost"
or "No result defined for action
com.mantiso.jsblog.actions.PostsController and result posts"
Any help would be gratefully accepted,
--
Kevin
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]