29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

► Forwards: A Struts forward is an object returned by an action; it has two<br />

fields: a name and a path. The path indicates where a request is to be<br />

forwarded. A forward can be local (pertaining to a specific action) or global<br />

(available to any action).<br />

► Connections: In a Struts diagram, a connection is a line that represents<br />

either logic flow or data flow.<br />

– Logic flow<br />

A logic flow connection in a Web diagram represents how a page or an<br />

action “flows” to the next page or action. For example, a link from a Web<br />

page to another page represents how the first page can go to the next<br />

page. This type of connection is represented in a Web diagram with a<br />

black line. Possible types of logic flow connections include:<br />

Web page to Web page<br />

Web page to action mapping<br />

Web page to Web application<br />

Action mapping to action mapping<br />

– Data flow<br />

A data flow connection is a line that represents a possible flow of data<br />

through beans from a Web page or an action mapping. Two types of data<br />

flow connections exist:<br />

Declared data reference: This connection type is shown, by default, as<br />

a blue line. Types of declared data reference connections include:<br />

Action mapping to form bean, where the form bean is the form bean<br />

specified in the action mapping declaration.<br />

Web page to Java bean, where the bean is referenced in a Web<br />

page by a useBean tag<br />

Web page to form bean, where the bean is referenced in a Web<br />

page by a useBean tag<br />

Note: The first connection made from an action mapping to a form<br />

bean is assumed to be the connection to the action mapping's<br />

defined form bean. Any subsequent connections from that action<br />

mapping to other form beans are assumed to represent bean<br />

references from within the action mapping's action class and are<br />

shown as procedural data references.<br />

400 <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!