Creating Operation.jsp with a Grid Panel
In our example we would like to pass the user's Operation
and Difficulty selections from Welcome.jsp
to Operation.jsp.
Example: If the user selects operation Subtract and difficulty Medium
and clicks Start in Welcome.jsp, then Operation.jsp
should display like this.
This layout is achieved through the Grid Panel component in
the Woodstock Layout palette:
- The panel's columns property is set to 2 and
its styleClass property is set to subtitle
- Four Woodstock Basic components are dragged to the panel:
- A Label component with text property set to "You
chose the operation:"
- A Static Text component with text property bound to a
request bean property (discussed later)
- A Label component with text property set to "You
chose level of difficulty:"
- A Static Text component with text property bound to a
request bean property (discussed later)