try to use response.sendRedirect("Success.jsp"); instead of jsp:forward tag

Y
----- Original Message -----
From: Rupali Bains Goswami <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 11, 2000 1:47 AM
Subject: Problem with jsp: forward page -- Please HELP!


> I am having problems with a simple jsp: forward syntax
>
> my jsp file looks like this
>
> <%@ page language="java" import="ccms.Authenticate" %>
>
> <jsp:useBean id="auth" scope="session" class="ccms.AuthenticateAdmin" />
> <jsp:setProperty name="auth" property="*"/>
>
> <%
>    if (auth.allowedUser())
>    {
>       out.print("<p> The user is the account manager ");
>       System.out.println ("This is the account manager");
> %>
>            <jsp:forward page="Success.jsp" />
> <%
>
>    }
>    else
>    {
> %>
>      <jsp:forward page="launch1.html" />
>
> <%
>
>    }
>
> %>
>
> simple enough but when it runs i get the error for the forward page
> This is the account manager
> Mon Jul 10 16:44:33 EDT 2000:<E> <ServletContext-General> Servlet failed
> with Ex
> ception
> java.lang.NoSuchMethodError
>         at
> weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
> cherImpl.java:95)
>         at
> weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:93)
>
>         at
> jsp_servlet._htdocs._login2._logoncustomer._jspService(_logoncustomer
> .java:144)
>         at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
>
> Thanks
>
>
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>
===========================================================================
> 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

===========================================================================
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