RestEasy open html/jsp page
问题 There is a RestEasy method, which handles @GET requests. How is it possible to open a jsp/html page from that method? @GET @Path("/") public void getMainPage(){ //... } 回答1: HtmlEasy is a great tool to render jsp files through RestEasy. @Path("/") public class Welcome { @GET @Path("/welcome/{name}") public View sayHi(@PathParm("name") String name) { return new View("/welcome.jsp", name); } } See documents for all options. 回答2: Using org.jboss.resteasy.resteasy-html version 3.0.6.Final you can