<% ServletContext sc = getServletContext(); (1)RequestDispatcher rd = application.getRequestDispatcher( "/err.jsp" ); (2)RequestDispatcher rd = sc.getRequestDispatcher( "/err.jsp" ); %> what is the diference between (1) and (2) in a jsp file!
Sun Certified Java Programmer<br />Sun Certified Web Component Developer
Stephen Tallamy
Greenhorn
Joined: Jan 08, 2002
Posts: 16
posted
0
As far as I know there is no difference between the two statements. application is the implicit object for the ServletContext of the JSP page. Hence your object sc is the same as the implicit object application. [ January 09, 2002: Message edited by: Stephen Tallamy ]