Exemplos de WAE

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

Figure A-10.

HTML form

Figure A-11. A targeted «submit» relationship


Figure A-13. An HTML <FORM> modeled with a «form» stereotype

Figure A-15. <OBJECT> element specifying an ActiveX control


Figure A-16. An HTML <OBJECT> tag modeled as an association class

Figure A-19. Client-side JavaScript includes


<frameset cols="150,*">
<frame src="toc.html">
<frame name="content" src="javascript:parent.blank()">
</frameset>

A toc.html fragment follows:

<a href="chap1.html" target="content">Chapter 1</a>


<a href="chap2.html" target="content">Chapter 2</a>
<a href="chap3.html" target="content">Chapter 3</a>

The resulting UML model is expressed in the class diagram of Figure A-20.

Figure A-20. Class diagram of <FRAMESET>


Figure A-21. Framesets with initial content specified

Figure A-22. The <IFRAME> element


Figure A-30. An HTTP parameter modeled as constraints on the «link» association

Figure A-31. Multiple HTTP parameters modeled with a single constraint but
separated with ampersands

Figure A-32. Links using link classes


Figure A-33. Style sheet links modeled with «include» associations
<%!
private int timesAccessed = 0;

private void writeTable(SearchListing listing){


...
}

private void writeRow( Item item ){


...
}

private int getIndex( HttpRequest req ) {


...
}

private SearchListing search( SearchCriteria criteria, int startingIndex


){
...
}
%>
<%
// member variable definitions
int index = 0;
int totalPages = 0;
SearchListing listing = null;

// beginning of main page logic


timesAccessed++;
SearchCriteria criteria = (SearchCriteria)
session.getAttribute("criteria");
if( criteria != null ) {
index = getIndex( request );
if( index > 0 ) {
listing = search( criteria, index );
}
}
%>
<html>

<head>
<title>Library Listing</title>
</head>
<body>
...
</body>

Figure A-41. Sample «server page» class


Figure A-44. Component mapping for JSP file

/(some web root)/tutorials/fractions/certificate.jsp

You might also like