Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Boxes: those shaded red indicate an action; those shaded green indicate a view file (JSP, etc).
  • Links: arrows colored green imply that no new HTTP request is being made; black arrows indicate a new HTTP request.
  • Link labels: labels may sometimes contain additional useful information. For example, a label of href means that the link behavior is that of a hyper-text reference. The complete label behaviors are provided:
    • href - a view file references an action by name (typically ending with the extension ".action")
    • action - a view file makes a call to the Action Tag
    • form - a view file is linked to an action using the Form Tag
    • redirect - an action is redirecting to another view or action
    • ! notation - a link to an action overrides the method to invoke

Requirements

WebFlow requires that your view files be structured in a very specific way. Because it has to read these files, only certain styles are supported. The requirements are:

  • The JSP tags must use the "ww" namespace.
    • In JSP: <ww:xxx/>
    • In FreeMarker: <@ww.xxx/>
    • In Velocity: N/A
  • Use of the Form Tag and Action Tag must be linking directly to the action name (and optional namespace). This means that <ww:form action="foo"/> is OK, but <ww:form action="foo.action"/> is not.
  • All code is expected to be using the Alt Syntax.

Setting up

WebFlow is built in to WebWork, so if you're up and running with WebWork, you don't need to do anything additional java packages. However, WebFlow does require the "dot" package by GraphViz.

...