You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hu...@apache.org on 2003/12/21 23:45:41 UTC
cvs commit: jakarta-struts/web/example welcome.jsp index.jsp
husted 2003/12/21 14:45:41
Modified: web/example index.jsp
Added: web/example welcome.jsp
Log:
Change to use typical welcome.do - welcome.jsp approach.
Revision Changes Path
1.18 +6 -40 jakarta-struts/web/example/index.jsp
Index: index.jsp
===================================================================
RCS file: /home/cvs/jakarta-struts/web/example/index.jsp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- index.jsp 30 Nov 2001 02:12:00 -0000 1.17
+++ index.jsp 21 Dec 2003 22:45:41 -0000 1.18
@@ -1,43 +1,9 @@
-<%@ page contentType="text/html;charset=UTF-8" language="java" %>
-<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
-<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
-<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
+<%@ taglib uri="WEB-INF/struts-logic.tld" prefix="logic" %>
+<logic:redirect forward="welcome"/>
-<html:html locale="true">
-<head>
-<title><bean:message key="index.title"/></title>
-<html:base/>
-</head>
-<body bgcolor="white">
+<%--
-<logic:notPresent name="database" scope="application">
- <font color="red">
- ERROR: User database not loaded -- check servlet container logs
- for error messages.
- </font>
- <hr>
-</logic:notPresent>
+Redirect default requests to Welcome global ActionForward.
+By using a redirect, the user-agent will change address to match the path of our Welcome ActionForward.
-<logic:notPresent name="org.apache.struts.action.MESSAGE" scope="application">
- <font color="red">
- ERROR: Application resources not loaded -- check servlet container
- logs for error messages.
- </font>
-</logic:notPresent>
-
-<h3><bean:message key="index.heading"/></h3>
-<ul>
-<li><html:link page="/editRegistration.do?action=Create"><bean:message key="index.registration"/></html:link></li>
-<li><html:link page="/logon.jsp"><bean:message key="index.logon"/></html:link></li>
-</ul>
-
-<p> </p>
-<html:link page="/tour.do">
-<font size="-1"><bean:message key="index.tour"/></font>
-</html:link>
-<p> </p>
-
-<html:img page="/struts-power.gif" alt="Powered by Struts"/>
-
-</body>
-</html:html>
+--%>
1.1 jakarta-struts/web/example/welcome.jsp
Index: welcome.jsp
===================================================================
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html:html locale="true">
<head>
<title><bean:message key="index.title"/></title>
<html:base/>
</head>
<body bgcolor="white">
<logic:notPresent name="database" scope="application">
<font color="red">
ERROR: User database not loaded -- check servlet container logs
for error messages.
</font>
<hr>
</logic:notPresent>
<logic:notPresent name="org.apache.struts.action.MESSAGE" scope="application">
<font color="red">
ERROR: Application resources not loaded -- check servlet container
logs for error messages.
</font>
</logic:notPresent>
<h3><bean:message key="index.heading"/></h3>
<ul>
<li><html:link action="/editRegistration?action=Create"><bean:message key="index.registration"/></html:link></li>
<li><html:link action="/logon"><bean:message key="index.logon"/></html:link></li>
</ul>
<p> </p>
<html:link action="/tour">
<font size="-1"><bean:message key="index.tour"/></font>
</html:link>
<p> </p>
<html:img page="/struts-power.gif" alt="Powered by Struts"/>
</body>
</html:html>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org