More Related Content
Similar to JSF2.2で簡単webアプリケーション開発
Similar to JSF2.2で簡単webアプリケーション開発 (20)
JSF2.2で簡単webアプリケーション開発
- 11. JAX-RSの場合
<form action=”/act1”>
<input type=”submit” value=”act1”/>
</form>
<form action=”/act2”>
<input type=”submit” value=”act2”/>
</form>
HTML
@Path
public class ActResource {
@POST
@Path(“act1”)
@Produces(“text/html”)
public Viewable act1() {
//...
}
@POST
@Path(“act2”)
@Produces(“text/html”)
Public Viewable act2() {
//...
}
}