____________________ diagrams use flowchart start and stop symbols (called lozenges) to describe actions and solid dots to represent start and stop states.
Fill in the blank(s) with the appropriate word(s).
Activity
You might also like to view...
Which of the following is not one of the three general types of computer languages?
a. Machine languages. b. Assembly languages. c. High-level languages. d. Spoken languages.
Vector files tend to be ____ because the vectors and attributes describing a shape can be stored very efficiently.
A. large B. compressed C. small D. decompressed
The ____ appears over a placed graphic when you move the Selection tool over the graphic.
A. alignment indicator B. content indicator C. placement indicator D. selection indicator
Define the middle tier for the US State Facts application.
a) Opening states.jsp. Open the states.jsp file that you modified . b) Defining the form’s method and action attributes in the states.jsp page. In the states.jsp source code, specify "post" as the form element’s method and use the action attribute to forward the client request to the stateFacts.jsp. c) Populating the HTML menu control with state names. In the states.jsp source code, add a while statement to the scriptlet in states.jsp. The loop should add each state’s name (retrieved from the ResultSet) to the HTML menu control. This step requires you to use literal HTML markup and a JSP expression as well. d) Closing the ResultSet. In the scriptlet, add code to close the ResultSet by invoking its close method. e) Saving the file. Save your modified source code file. f) Opening stateFacts.jsp. Open the stateFacts.jsp that you modified. g) Displaying the selected state name. In the stateFacts.jsp source code, modify the h1 header element that contains “State Name” to display the selected state name. h) Moving to the first row in the ResultSet. In the scriptlet that obtains the Result- Set, position the ResultSet cursor to the first row of the ResultSet by calling its next method. i) Displaying the state’s flag. In the stateFacts.jsp source code, modify the img ele- ment to display the selected state’s flag. j) Displaying the state’s capital. In the stateFacts.jsp source code, modify the para- graph element that contains “Capital:” to display the selected state’s capital. k) Displaying the state’s flower. In the stateFacts.jsp source code, modify the paragraph element that contains “Flower:” to display the selected state’s flower. l) Displaying the state’s tree. In the stateFacts.jsp source code, modify the para- graph element that contains “Tree:” to display the selected state’s tree. m)Displaying the state’s bird. In the stateFacts.jsp source code, modify the para- graph element that contains “Bird:” to display the selected state’s bird. n) Closing the ResultSet. In the scriptlet that appears after the code you added in Steps i–m, add code to close the ResultSet by invoking its close method. o) Saving the file. Save your modified source code file. p) Copying states.jsp and stateFacts.jsp to the StateFacts directory. Copy your updated states.jsp and stateFacts.jsp files and paste them into the C:\Program Files\Apache Group\Tomcat 4.1\webapps\StateFacts directory. q) Starting Tomcat. Select Start > Programs > Apache Tomcat 4.1 > Start Tomcat to start the Tomcat server. r) Testing the application. Open a Web browser and enter the URL http:// localhost:8080/StateFacts/states.jsp, select a state name from the list and click the Review Facts button to test the application. s) Stopping Tomcat. Select Start > Programs > Apache Tomcat 4.1 > Stop Tomcat to stop the Tomcat server.