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.

12.2.8 Data Mappings view<br />

The Struts Data Mappings view lets you see how a Web page form controls data<br />

maps to the destination formBean class. You can then use this mapping to<br />

determine whether there is a mismatch between the input (form) and the target<br />

(formBean).<br />

Figure 12-20 Data Mappings view<br />

This viewer takes selections from Struts Explorer and Web diagram editor as the<br />

context, and if the selection is valid, the Data Mappings Viewer refreshes with the<br />

new input.<br />

When a valid input is selected, a table with two columns appears. The columns<br />

contain the following information:<br />

► A list of all the fields that this form link contains, including the hidden fields<br />

► A list of properties in the form bean that can be set<br />

12.2.9 Struts validation<br />

Struts validation is built upon the validation framework in the workbench. By<br />

default, the following aspects of a Struts project are automatically validated when<br />

a relevant file is closed:<br />

► Syntax of Struts configuration file<br />

► Syntax of Struts tags in web.xml file<br />

► Resolution of Struts links and references in various Struts files<br />

424 <strong>IBM</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> - Express V5.0.2 Developer Handbook

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

Saved successfully!

Ooh no, something went wrong!