HI,
I am new to tomcat / struts . Trying my hands on it . I am getting this
error when i try to access my jsp page. Here is what I did
1. Created a logon folder inside the webapps folder
2. wrote the logon.jsp and put it inside logon folder.
2. created a subfolder WEB-INF.
3. created a web.xml and config.xml file inside WEB-INF
4. copied the struts*.tld files into the WEB-INF folder.
(restarted the tomcat )
5. here is the contet of logon.jsp
<%@ taglib uri="WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="WEB-INF/struts-logic.tld" prefix="logic" %>
<HTML>
<HEAD>
<TITLE> Sign in Please!</TITLE>
<html:base/>
</HEAD>
<html:errors/>
<BODY>
<html:form action="/LogonSubmit" focus="username">
<TABLE border="0" width="100%">
<TR>
<TH align="right">Username:</TH>
<TD align="lft"><html:text
property="username"/></TD>
</TR>
<TR>
<TH align="right">Password:</TH>
<TD align="left"><html:password
property="password"/></TD>
</TR>
<TR>
<TD align="right"><html:submit/></TD>
<TD align="left"><html:reset/></TD>
</TR>
</TABLE>
</html:form>
</BODY>
</HTML>
my web.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<taglib>
<taglib-uri>WEB-INF/struts-bean</taglin-uri>
<taglib-location> /WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>WEB-INF/struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>WEB-INF/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
</web-app>
my struts-config.xml (incomplete)
<!DOCTYPE struts-config PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<action>
<struts-config>
<form-beans>
<form_beans>
<action-mapping>
<action path="/LogonSubmit"
type="app.LogonAction"
name="logonForm"
scope="request"
validate="true"
input="/logpn/Logon.jsp">
<forward name="" path=""/>
<forward name="" path=""/>
</action>
</action-mapping>
</struts-config>
--
View this message in context:
http://www.nabble.com/HTTP-Status-404----logon-logon.jsp-tp17547537p17547537.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]