Web tier: servlets, JSP, Web frameworks: calling a servlet from a JSP

  1. calling a servlet from a JSP (1 messages)

    I want to display a servlet result in a JSP page.The servlet is not accessible to me and the servlet is not in my applications context so i am not able to use the RequestDispatcher i am not able to work with the jsp:incllude or include directive because both are only accepting the reletive URL anybody please suggest me a solution.
  2. calling a servlet from a JSP[ Go to top ]

    Why can't you use a RequestDispatcher? As far as I know something like this should work:

    RequestDispatcher disp = request.getRequestDispatchet("www.google.com");

    ...perhaps the methods are wrong, sorry about that.
    Hope it helps.