Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. @GET
  2. @Path("/test")
  3. public void requestToTelkom(@Context HttpServletRequest request,@Context HttpServletResponse response ) {
  4.  
  5. try {
  6.  
  7.  
  8.  
  9. // the request object is printed successfully
  10. System.out.println(request);
  11.  
  12.  
  13.  
  14. // when i try to forward like this i get exceptions
  15. RequestDispatcher rd = request
  16. .getRequestDispatcher("BypassServlet");
  17.  
  18. rd.forward(request, response);
  19. } catch (ServletException e) {
  20. // TODO Auto-generated catch block
  21. e.printStackTrace();
  22. } catch (IOException e) {
  23. // TODO Auto-generated catch block
  24. e.printStackTrace();
  25. }
  26.  
  27. UT010023: Request io.undertow.servlet.spec.HttpServletRequestImpl@53b21177 was not original or a wrapper
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement