eFile2"/>
<html:submit/>
</html:form>
</body>
</html:html>
四、配置struts-config.xml文件
<?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="uploadsForm" type="com.cnehu.struts.form.UpLoadForm" />
</form-beans>
<global-exceptions />
<global-forwards >
</global-forwards>
<action-mappings >
<action name="uploadsForm" type="com.cnehu.struts.action.UpLoadAction" path="/uploadsAction">
<forward name="display" path="/display.jsp" />
</action>
</action-mappings>
</struts-config>
全文完! |