Hi,
I'm getting ERROR 404 while forwarding to a different page. I don't if i'm doing anything stupid here. The response.sendRedirect works fine if the page gets an database error message. When i get no messges it gives ERROR 404.Please help me out. The code is below
FYI, The current JSP page is "http:/localhost:8080/examples/jsp/PRSAS/PRSASLogin.jsp"
<%@ page language="java" import="ActLogin" %>
<jsp:useBean id="act" scope="session" class="ActLogin" />
<HTML>
<HEAD>
<TITLE>PRSAS appraisal</TITLE>
</HEAD>
<body>
<%
act.dbConnection();
act.validateUserId("999999999");
act.validatePassword("SYSADMIN");
act.validateUserAccess("999999999");
act.dbdisconnect();
request.getSession(true).putValue("NextTime","next");
%>
<%= act.getError() %>
<%
if (act.getError().equals(""))
{
%>
<jsp:forward page="http://localhost:8080/examples/jsp/PRSAS/PRSASSiteInfo.jsp" />
<% }
else
{
response.sendRedirect("http://localhost:8080/examples/jsp/PRASAS/prsasLogon.jsp");
}
%>
</BODY>
</HTML>
Thanks for the help in advance
