Hi all,

I am getting invalid include tag as error when i run the following jsp. If i remove 
the include tag it is working fine. Similarly, if i run the file specified in the 
include tag separately, it is running fine. I don't know where i am going wrong.
Your replies are highly appreciated.

krishnan

The code for jsp

<jsp:include page="/jsp/DB_loginChecker.jsp" />
<%@ page import="java.io.*"  session="true" errorPage="DB_exceptionHandler.jsp" %>
<%!

        String result=null;
%>

<jsp:useBean id="login" scope="request" class="beans.DB_loginHandler" />
<jsp:setProperty name="login" property="*" />


<%
        result=login.doAuthentication();
        if(result.equals("success"))
        {
                session.putValue("login.done","true");
                response.sendRedirect("/kicha/jsp/DB_connectToDB.jsp");
        }
        else
        {

                request.setAttribute("textToErrorPage1",result);
                request.setAttribute("noOfText","1");
%>
                <jsp:forward page="/jsp/DB_errorpage.jsp" />
<%
        }
%

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to