<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> Example: JSP scope

In-class exercise 11

your name

<%! // String url = "http://localhost:8080/swe432/jsp/example/displayform.jsp"; %> <%! String url = "http://apps-swe432.vse.gmu.edu:8080/swe432/jsp/uprapham/displayform.jsp"; %> <%@ page import ="uprapham.itemForm" %> <%@ page import ="uprapham.itemsBean" %>

Here is the formData initially:



This is the formData after calling setter*:


> <% if (formData.getItem() == null || formData.getItem().equals("null")) { %>

Please enter an item you would like to put up for sale:

Item name:


Item description:


Starting bid (skipping buttons):

<% } else { %>

The data you read in was:

Bid on an existing item,

Amount you want to bid on selected item:

<% } %>

What is your username: