>
<html:html>
This is the default Module Application<br/>
Links created for own Forward action <br/>
<a href="switchAdmin.do">Admin</a><br/>
<a href="switchRegister.do">Register</a><br/>
Links created for the SwitchAcion<br/>
<a href="switchtoAdmin.do?prefix=/admin&page=/index.jsp">Admin</a><br/>
<a href="switchtoRegister.do?prefix=/regsiter&page=/index.jsp">Register</a><br/>
Links created for the html:link tag<br/>
<html:link module="/admin" page="/index.jsp">admin</html:link>
<html:link module="/register" page="/index.jsp">register</html:link>
<br/>
</html:html>
(6) index.jsp file for Admin Module.
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html>
This is the Admin Module File
<a href="/switchToRegister.do?prefix=/register&page=/index.jsp">Register</a>
</html:html>
(7) index.jsp file for Register Module.
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html>
This is the Regsiter Module File
<a href="/switchToAdmin.do?prefix=/admin&page=/index.jsp">Admin</a>
</html:html>
(8) Output:-
Note:- On running the default module index.jsp file the following output will be displayed on the screen.
