JSP Tag Libraries

Скачать в pdf «JSP Tag Libraries»


</TR>


</TABLE>


</TD>


</TR>


<TR>


<TD ALIGN=»center»>


<BR>



<j sp:include page=»shortOrder.j sp flush=»true»/>


</TD>


</TR>


</TABLE>


</CENTER>


</BODY>


</HTML>


Makes sure that this page won’t get cached. Includes the user menu view.


Displays the full image URL.


Includes the user menu view.


о


e о о


The JSP displays a form in which the user can specify the username and password, which is sent to the logon handler. Apart from that, there is not much action going on in that page, so we leave it at that, and continue with the next one.

Logon successful


Listing 13.22 is the source code for the implementation of our logon successful view. The file name is logonConfirmation.jsp.


Listing 13.22 logonConfirmation.jsp


<%@ page contentType=»text/html;charset=UTF-8″%>


<%@ taglib


uri=»http://www.manning.com/jsptagsbook/beans-taglib» prefix=»bean» %>


<%@ taglib


uri=»http://www.manning.com/jsptagsbook/conditions-taglib» prefix=»cond» %>


<%@ taglib


uri=»http://www.manning.com/jsptagsbook/simple-taglib» prefix=»simple» %>


<cond:with name=»customer»


property=»loggedOn» scope=»session»>


<cond:test condition=»neq true»> e


<simple:redirect location=»logonForm.jsp»/> О </cond:test> О <cond:test condition=»eq true»>


<simple:nocache useHeaders=»true»/>


<HTML>


<HEAD>


<TITLE>Cosmetics</TITLE>


</HEAD>


<BODY BGCOLOR=»#FFFFFF»>


<CENTER>


<TABLE CELLSPACING=»0″


CELLPADDING=»0″


BORDER=»0″>


<TR>


<TD>


<j sp:include page=»userMenu.jsp» flush=»true»/>


</TD>


</TR>


<TR>


<TD>


<P>


<B>


Welcome back <bean:show name=»customer»


property=»name» scope=»session»/>


</B>


</P>


<P>


We hope that you will find many interesting products in our catalog.


</P>

Скачать в pdf «JSP Tag Libraries»