@Path(value="book") public class BookController extends Object
| Constructor and Description |
|---|
BookController() |
| Modifier and Type | Method and Description |
|---|---|
String |
view1(String id)
MVC controller to render a book in HTML.
|
void |
view2(String id)
MVC controller to render a book in HTML.
|
@GET
@Controller
@Produces(value="text/html")
@Path(value="view1/{id}")
public String view1(@PathParam(value="id")
String id)
id - ID of the book given in URI.@GET
@Controller
@Produces(value="text/html")
@Path(value="view2/{id}")
@View(value="book.jsp")
public void view2(@PathParam(value="id")
String id)
id - ID of the book given in URI.Copyright © 2015. All Rights Reserved.