Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. https://www.mydomain.com/myJavaServlet
  2.  
  3. https://www.mydomain.com/myFile.pdf#nameddest=Chapter3
  4.  
  5. https://www.mydomain.com/myJavaServlet
  6.  
  7. req.getRequestDispatcher("https://www.mydomain.com/myFile.pdf#nameddest=Chapter3").forward(req, res);
  8.  
  9. String url = "https://www.mydomain.com/myFile.pdf";
  10. RequestDispatcher requestDispatcher = getServletContext().getRequestDispatcher(url);
  11. requestDispatcher.forward(req, res);
  12.  
  13. String url = "/WEB-INF/myFile.pdf";
  14.  
  15. RequestDispatcher requestDispatcher = req.getRequestDispatcher(url);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement