Hi Ragini
if you want to learn about struts-config.xml then please use my eclipse its giving so much automatic code for using.
in that xml file we need to configure form bean class and action classes, follwing some code please see that.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">;
<struts-config>
<data-sources />
<form-beans >
<form-bean name="registerForm" type="form.RegisterForm" />
<form-bean name="memberLoginForm" type="form.MemberLoginForm" />
<form-bean name="bSPremiumeForm" type="form.BSPremiumeForm" />
<form-bean name="bSBankDetailForm" type="form.BSBankDetailForm" />
<form-bean name="incentivePercentageForm" type="form.IncentivePercentageForm" />
<form-bean name="bSPayRequestForm" type="form.BSPayRequestForm" />
<form-bean name="bSAdminLoginForm" type="form.BSAdminLoginForm" />
<form-bean name="bSChequeIssueForm" type="form.BSChequeIssueForm" />
<form-bean name="bSChangeAdminPassForm" type="form.BSChangeAdminPassForm" />
</form-beans>
<global-exceptions />
<global-forwards />
<action-mappings >
<action
attribute="registerForm"
input="/pages/BSRegistration.jsp"
name="registerForm"
path="/register"
scope="request"
type="action.RegisterAction">
<forward name="success" path="/pages/Regsuccess.jsp" />
<forward name="failure" path="/pages/M1.jsp" />
</action>
<action
attribute="memberLoginForm"
input="/pages/memberLogin.jsp"
name="memberLoginForm"
path="/memberLogin"
type="action.MemberLoginAction" />
<action
attribute="bSPremiumeForm"
input="/pages/BSPremiume.jsp"
name="bSPremiumeForm"
path="/bSPremiume"
scope="request"
type="action.BSPremiumeAction" />
<action
attribute="bSBankDetailForm"
input="/pages/BSBankDetail.jsp"
name="bSBankDetailForm"
parameter="operation"
path="/bSBankDetail"
scope="request"
type="action.BSBankDetailAction">
<forward name="success" path="/pages/banksuccess.jsp" />
<forward name="failure" path="/pages/BSBankDetail.jsp" />
</action>
<action
attribute="registerForm"
input="/pages/BSAdminRegister.jsp"
name="registerForm"
path="/bSAdminRegister"
scope="request"
type="action.BSAdminRegisterAction">
<forward name="success" path="/pages/RegAdminsuccess.jsp" />
<forward name="failure" path="/pages/M2.jsp" />
</action>
<action
attribute="incentivePercentageForm"
input="/pages/incentivePercentage.jsp"
name="incentivePercentageForm"
path="/incentivePercentage"
scope="request"
type="action.IncentivePercentageAction" />
<action
attribute="bSPayRequestForm"
input="/pages/BSPayRequest.jsp"
name="bSPayRequestForm"
path="/bSPayRequest"
scope="request"
type="action.BSPayRequestAction" />
<action
attribute="memberLoginForm"
input="/pages/BSAdminLogin.jsp"
name="bSAdminLoginForm"
path="/bSAdminLogin"
scope="request"
type="action.BSAdminLoginAction" />
<action
attribute="bSPremiumeForm"
input="/pages/BSAdminPremium.jsp"
name="bSPremiumeForm"
path="/bSAdminPremium"
scope="request"
type="action.BSAdminPremiumAction" />
<action
attribute="bSAdminLoginForm"
input="/pages/BSAdminLogin1.jsp"
name="bSAdminLoginForm"
path="/bSAdminLogin1"
scope="request"
type="action.BSAdminLogin1Action" />
<action
attribute="memberLoginForm"
input="/pages/BSMemberLogin.jsp"
name="memberLoginForm"
path="/bSMemberLogin"
scope="request"
type="action.BSMemberLoginAction" />
<action
attribute="bSChequeIssueForm"
input="/pages/BSChequeIssue.jsp"
name="bSChequeIssueForm"
path="/bSChequeIssue"
scope="request"
type="action.BSChequeIssueAction" />
<action
attribute="bSChangeAdminPassForm"
input="/pages/BSChangeAdminPass.jsp"
name="bSChangeAdminPassForm"
path="/bSChangeAdminPass"
scope="request"
type="action.BSChangeAdminPassAction" />
<action
attribute="bSChangeAdminPassForm"
input="/pages/BSChangeMember.jsp"
name="bSChangeAdminPassForm"
path="/bSChangeMember"
scope="request"
type="action.BSChangeMemberAction" />
</action-mappings>
<message-resources parameter="ApplicationResources" />
</struts-config>