1

In servlet we can use requestdispatcher and it will forward from servlet to servlet or html file.but i tried this requestdispatcher in rest service.its not forwarding from service 1 to service 2.its just stop in service 1 not forwarding. i'm getting 404 error in client side.so how i can achieve this in rest service.following the code

RequestDispatcher rd = request.getRequestDispatcher("/v1/status1/toreply1"); 
rd.forward(request, response);

anything wrong in my coding..?please correct me if i'm wrong

nichu09
  • 882
  • 2
  • 15
  • 44

1 Answers1

0

404 means there is something wrong with URL "/v1/status1/toreply1", make sure it is correct

Sdf Sdf
  • 31
  • 1
  • 4
  • if i'm giving full url like http://localhost:8080/com.youtube.rest/api/v1/status1/toreply1.its giving error like url should start with '/' – nichu09 Nov 20 '13 at 11:59