29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 12-36 Action mapping attributes for the /login action mapping<br />

10.Save the changes and close the Configuration file editor.<br />

Logout action class<br />

To realize the action class for logout:<br />

1. Double-click the /logout action mapping node in the Web diagram editor to<br />

invoke the Action mapping wizard.<br />

2. Leave all the defaults and click Finish. This generates the template code for<br />

the LogoutAction class and opens the corresponding file in the Java editor.<br />

Note: In the JavaSource folder of the OnlineCatalog project, a package called<br />

onlinecatalog.actions has been created and contains the LogoutAction.java<br />

file.<br />

3. Replace the code for the LogoutAction class with the code from the following<br />

example.<br />

Chapter 12. Using Struts 449

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!