Monday, July 23, 2012

1.3. Basic Struts Example



WEB-INF\results\

bad-address.jsp

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD><TITLE>Illegal Email Address</TITLE></HEAD>
<BODY BGCOLOR="#FDF5E6">
<CENTER>
<H1>invalid Email Address</H1>
Please <A HREF="index.jsp">try again</A>.
</CENTER>
</BODY></HTML>

bad-password.jsp

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD><TITLE>invalid password</TITLE></HEAD>
<BODY BGCOLOR="#FDF5E6">
<CENTER>
<H1>invalid password</H1>
Please <A HREF="index.jsp">try again</A>.
</CENTER>
</BODY></HTML>

confirm.jsp

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<HTML>
<HEAD><TITLE>Success</TITLE></HEAD>
<BODY BGCOLOR="#FDF5E6">
<CENTER>
<H1>You are login successfully.</H1>
<bean:write name="userFormBean" property="name" />
Congratulations.
</CENTER>
</BODY></HTML>

No comments:

Post a Comment