Hello, I am using Tomcat 4.0.1 I have an html file in the root directory of my application, and am unsuccessful in trying to forward the request to this html file form within another jsp. E.g. The following code snippet gives me an IllegalStateException --- code snippet --- String forwardToURL = "/trial.html"; ServletContext sc = getServletContext(); sc.getRequestDispatcher(forwardToURL).forward(request,response); ---
where as the following works just fine. --- code snippet --- String forwardToURL = "/trial.jsp"; ServletContext sc = getServletContext(); sc.getRequestDispatcher(forwardToURL).forward(request,response); --- Both trial.html and trial.jsp are in the root folder of my web application. Could someone offer some pointers on where I am going wrong ? Thanks, Sriram __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
