struts-config.xml文件的配置

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" "http://struts.apache.org/dtds/struts-config_1_3.dtd">

<struts-config>

 <!--Form-Beans配置如下:-->
  <form-beans >
   <form-bean name="studentForm" type="pack.java.ssh.struts.form.StudentForm"></form-bean>
  </form-beans>
  <global-exceptions />
  <global-forwards />
  <action-mappings >

<!--action配置如下:-->

  <action
      parameter="p"                        
      input="/index.jsp"
      path="/studentAction"
      name="studentForm"    
      scope="request"                
      type="org.springframework.web.struts.DelegatingActionProxy">
     <forward name="index" path="/index.jsp"></forward>  
  </action>
    
  </action-mappings>

      <!--引用Struts中的国际化文件;-->
       <message-resources parameter="pack.java.ssh.struts.ApplicationResources" />
</struts-config>

 

 

你可能感兴趣的:(xml,jsp,bean,struts,ssh)