Hi All,
I am new to the RESTful webservice world.I have to develop a web application for my client and there it is proposed to me to use REST WS.
So i need to know if jsp+jersey0.6+jpa is a good combination. do i need to use some framework?
i tried Bookstore example of jersey but there jsp-templates are placed in a proper directory structure pattern but i want to put all my jsps into the folder i want. I aked this to Paul abd he told me the we can explicitly create an instance of viewable() class and tranfer the control to the jsp.
What i did is in the getItem() method of Bookstore.java class , i changed the retun type of getItem() method to Viewable and return the Viewable object with absolute path of the jsp and the item model. I haven't change the location of jsp because i just wanted to test it. but it is giving first a warning:
"A resource class, class com.sun.ws.rest.api.view.Viewable, does not have any resource method, sub-resource method, or sub-resource locator.
"
and on browser ,i am getting the following error description:
"The specified HTTP method is not allowed for the requested resource "
please help me out and tell me the procedure to integrate web resource to jsps.
Thanks & Regards,
Amit Maheshwari
314-331-1996