⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 struts-config.xml

📁 考试成绩维护系统
💻 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">

<!--
	NOTE: If you have a generator tool to create the corresponding Java classes
	for you, you could include the details in the "form-bean" declarations.
	Otherwise, you would only define the "form-bean" element itself, with the
	corresponding "name" and "type" attributes, as shown here.
-->
<struts-config>
	<form-beans>
		<form-bean name="loginForm" type="LoginForm" />
		<form-bean name="carForm" type="CarForm" />
	</form-beans>


	<global-exceptions>

	</global-exceptions>

	<!-- =================================== Global Forward Definitions -->
	<!-- =================================== Action Mapping Definitions -->

	<action-mappings>
		<action name="loginForm" path="/login" type="LoginAction">
			<forward name="login" path="/login.jsp"></forward>
			<forward name="success" path="/car.do"></forward>
			<forward name="failure" path="/login_failure.jsp"></forward>
		</action>
		
		<action name="carForm" path="/car" type="CarAction">
			<forward name="cars" path="/cars.jsp"></forward>
			<forward name="viewcar" path="/viewcar.jsp"></forward>
			<forward name="done" path="/done.jsp"></forward>
		</action>

	</action-mappings>


	<!-- ===================================== Controller Configuration -->
	<!-- ================================ Message Resources Definitions -->
	<!-- ======================================= Plug Ins Configuration -->

</struts-config>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -