Mark Estrada
Mark Estrada

Reputation: 9191

Servlet application with RESTFul Urls

I have a small legacy application which is created using the old servlet style approach wherein it extends HTTPServlet. The URLS are mapped with query parameters

http://localhost:8080/MyApp/servlet/ReportServlet?id=CA

Now they wanted it to be rewritten and follow REST Urls style.

http://localhost8080/MyApp/servlet/ReportServlet/id/CA

I dont know much how this is done so I'd like to ask for guidance on how to create a web application with REST urls. Most of the servlet tutorials uses annotations but never speaks about creating RESTFUL URL

I have searched SO but cant find similar questions so feel free to closed this if this is a duplicate but kindly point me to a resource that teaches this. Note that I am not looking into creating a RESTFul web service but how to create a Session Based Web Applications using HTTPServlet.

I am not to keen on using any specific frameworks so just with the bare JEE stack.

Upvotes: 3

Views: 3757

Answers (0)

Related Questions