hello friends...
This is my index.jsp:-
<%@ taglib uri="/WEB-INF/lib/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/lib/struts-nested.tld" prefix="nested" %>
<html:form action="/DisplayAction" >
Enter Userid:<html:text property="userid" /><br/>
<html:submit/>
<nested:present property="userid">
<nested:equal property="userid" value="1">
You are Bhoomika
</nested:equal>
</nested:present>
</html:form>
and this is the content of struts-config.xml :-
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD
Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<!--
This is the Struts configuration file for the example application,
using the proposed new syntax.
-->
<struts-config>
<data-sources>
<data-source type="org.apache.tomcat.dbcp.dbcp.BasicDataSource">
<set-property
property="driverClassName"
value="com.mysql.jdbc.Driver" />
<set-property
property="url"
value="jdbc:mysql://localhost/User" />
<set-property
property="username"
value="root" />
<set-property
property="password"
value="" />
</data-source>
</data-sources>
<form-beans>
<form-bean name="displayForm"
type="form.DisplayForm"/>
</form-beans>
<action-mappings>
<action path="/DisplayAction"
type="action.DisplayAction"
name="displayForm"
scope="request"
validate="false"
>
<forward name="display" path="/jsp/index.jsp" />
</action>
</action-mappings>
</struts-config>
I have created DisplayAction.java in action package and DisplayForm in form package .But when i submit form it says ServletAction not Found.