Struts中Jsp、ActionFrom、Action的配置
采集日期:2008-4-22作者:谭明波(注:本数据由系统自动采集,内容与BHCODE无关)
一、假设存在的三个文件为:userLogin.jsp、UserLoginAction、UserLoginForm,对应的配置文件名为默认的web.xml和struts-config.xml,主要的配置关系为struts-config.xml中定义: 二、struts-config.xml配置解释:<struts-config><!--注释:data-sources为数据源配置项 --> <data-sources /> <!--注释:form-beans所有FormBean配置的父结点(ActionFrom) --> <form-beans ><!--注释:form-bean具体(单个)FormBean的配置结点,必须包括name和type属性;