Is there anyway to have additional arguments in the URL of a Struts2 REST plugin controller?
For example, I have:
public class PersonController() implements ModelDriven<Object> {
private Integer id;
...
public String comment() { ... };
// Getter and Setter for id
}
which is successfully reached with
[domain]/person/{id}/comment
However, what I would like to be able to is have a URL like
[domain]/person/{id}/comment/{commentId}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…