O'Reilly logo

Struts Kick Start by Kevin Bedell, James Turner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The View Component: The HTML Form and the Form Bean

For this application, the best place to start is with the View component. The View in this case is made up of a JSP file and a Struts form bean.

Figure 3.1 shows the HTML form for this application. This is the only HTML page in the application.

Figure 3.1. The Hello World! application.

Listing 3.1 shows the JSP file used to create this HTML page. (This book assumes that you have a basic understanding of Java and JSP, so the discussion around Listing 3.1 will focus on the Struts portions of the file.)

Listing 3.1. The JSP File for the Hello World! Application (hello.jsp)
 <%@ page contentType="text/html;charset=UTF-8" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required