Sometimes, you need to get a handle on the Session during Action processing. Fortunately, it’s easy to get at. All you need to do is to use request.getSession(). After you have a handle on the session, you can use getAttribute and setAttribute to gain access to session properties.
In more complex applications, you’ll commonly have several pages of input awaiting processing. For example, you could decide that the user creation page is too long and should be broken down into two pages. To do this, you would begin by dividing the JSP form into two pieces, as shown in Listings 8.3 and 8.4.
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> <%@ taglib uri="/WEB-INF/struts-logic.tld" ...