You are on page 1of 1

index.

jsp
---------<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></head>
<body>
<html:link action="/studentInfo.do" >Student Info</html:link>
</body>
</html>
-------------------------------------------------------------------------------------struts-config
------------<struts-config>
<action-mappings>
<action path="/studentInfo.do" forward="/student_info.jsp" />
<action path="/submitStudentInfo.do"
type="ca.school.frontend.actions.StudentRegisterAction"
scope="request"
name="studentDetailsForm" />
</action-mappings>
</struts-config>
-------------------------------------------------------------------------------------web.xml
------<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>
--------------------------------------------------------------------------------------