I am implementing a Restful Web Service using Jersey. I want to show index.jsp as welcome page.
<%@page contentType=\"text/html\" pageEncoding=\"UTF-8\"%&
I found an alternative way to do this. instead of using index.jsp, I can use a class like:
@Path("/")
public class Hello {
// This method is called if HTML is request
@GET
@Produces(MediaType.TEXT_HTML)
public String sayHtmlHello() {
return " " + "" + "Rest Page" + " "
+ "" + "REST is Working!" + "
" + " ";
}
In web.xml I do not need to use:
index.jsp
And it works fine with:
/*