Having installed and attempted to configure Tomcat v3.2.1 and Apache v1.3, I
try to run a JSP called 'logon.jsp' via my browser (IE v4.0).
The Java application is installed within a Sun Solaris UNIX environment.

The JSP is run via the browser by typing in the following URL :-

http://<Host_IP_Address>:8081/Application/logon.jsp

where <Host_IP_Address> is the relevant IP Address of the Host machine.

It displays the JSP fine in the browser, but then when I click on the
'Submit' button, it calls up the following URL :-

http://<Host_IP_Address>:8081/Application/Company.Application.Logon

and I get the following error :-

Not Found (404)

Original request: /Application/Company.Application.Logon

Not found request: /Application/Company.Application.Logon

The code within the JSP (i.e. logon.jsp) is as follows :-

----------------------------------------------------------------------------
------------------------
<%@page language="java" errorPage="ErrorPage.jsp" %>
<%@page import="Company.Application.*" %>
<%@page contentType="text/html"%>
<html>
<head>
<title>
Company Application - Sign In
</title>
<SCRIPT language='JavaScript'>
<!-- hide the JavaScript from non JS browsers

function ValidText( txt )
{
  return ( txt.value != "" && txt.value != " " );
}

function PoliteMessage( field )
{
  alert( "The " + field + " is blank or invalid. Please re-enter." )
}

function DoSubmit()
{
  if ( !ValidText( document.UserInfo.UserName ) )
  {
    PoliteMessage( "UserName" )
    location.href = "#a_UserName";
    return;
  }

  if ( !ValidText( document.UserInfo.PassWord ) )
  {
    PoliteMessage( "password" )
    location.href = "#a_PassWord";
    return;
  }
  document.UserInfo.submit()
}
//-->
</SCRIPT>
</head>
<body BGCOLOR="cyan">

<form name="UserInfo" action="Company.Application.Logon" method="post">

<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
<TR>
        <MAP NAME="map">
          <AREA SHAPE="CIRCLE" COORDS="51,128,25" HREF="Members.html"
ALT="members.html">
          <AREA SHAPE="CIRCLE" COORDS="39,197,26" HREF="SampleData.html"
ALT="SampleData.html">
          <AREA SHAPE="CIRCLE" COORDS="50,265,26" HREF="FreeTrial.html"
ALT="FreeTrial.html">
          <AREA SHAPE="CIRCLE" COORDS="100,327,26" HREF="About.html"
ALT="About.html">
          <AREA SHAPE="CIRCLE" COORDS="122,257,22" HREF="Demo.html"
ALT="Demo.html">
          <AREA SHAPE="CIRCLE" COORDS="117,170,26" HREF="Home.html"
ALT="Home.html">
        </MAP>
        <TD WIDTH="156"><IMG SRC="CAmenuMapColour.jpg" USEMAP = "#map"
></TD>
        <TD COLSPAN="3">&nbsp;</TD>
<TD>
<p><input type="hidden" name="Action"></p>
<p><input type="hidden" name="CurrentPage"></p>
<p>Name of User  <a name="a_UserName"></a><input type="text"
name="UserName"></p>
<p>Password..... <a name="a_PassWord"></a><input type="password"
name="PassWord"></p>

<p>press Submit to post to Logon servlet</p>
<p><input type="submit" name="Submit" value="Submit" onclick="DoSubmit()">

<input type="reset" value="Reset"></p>
</form>
<hr>
</TD>
</TR>
</TABLE>
</form>
</body>
</html>
----------------------------------------------------------------------------
------------------------

The 'web.xml' file has been configured.
The 'Application.jar' file is present within the
'usr/local/apache/tomcat/webapps/Application/WEB-INF' directory.
The 'Logon.class' is contained within the 'Application.jar' file.
The 'jasper.log' reports the following :-

2001-02-26 02:19:40 - JspEngine --> /logon.jsp
2001-02-26 02:19:40 -        ServletPath: /logon.jsp
2001-02-26 02:19:40 -           PathInfo: null
2001-02-26 02:19:40 -           RealPath:
/usr/local/apache/tomcat/webapps/Application/logon.jsp
2001-02-26 02:19:40 -         RequestURI: /Application/logon.jsp
2001-02-26 02:19:40 -        QueryString: null
2001-02-26 02:19:40 -     Request Params:
2001-02-26 02:19:40 - Classpath according to the Servlet Engine is:
/usr/local/apache/tomcat/webapps/Application/WEB-INF/classes:/usr/local/apac
he/tomcat/webapps/Application/WEB-INF/lib/Application.jar

Any ideas ?

Please help !!!

Regards,
Nicky



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to