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 Configuration File in Context

Now that you’ve seen the format of the configuration file, it’s worth talking about how the file interrelates all the other elements of Struts.

For example, you can begin by looking at it from the perspective of the JSP page. When a page uses an <html:form> tag with an action attribute, the attribute is looked up in the configuration file to discover the corresponding <action> tag. This tag in turn defines the form class, which allows the JSP page to make use of the <html:text> and other form input tags, and the action class, which is used to process the results after validation.

In addition, the action might need to communicate with a database, which could have been configured using a data source directive ...

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