| <?xml version="1.0"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <document xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"> |
| <header> |
| <title>Forms example</title> |
| <tab title="back" href="."/> |
| </header> |
| <body> |
| <row> |
| <column title="Form result"> |
| Email: ${form2bean.email} |
| <br/> |
| Phone: +${form2bean.phoneCountry}-${form2bean.phoneZone}-${form2bean.phoneNumber} |
| <br/> |
| IP Address: ${form2bean.ipAddress} |
| <br/> |
| birthday: ${form2bean.birthday} |
| <br/> |
| number: ${form2bean.aNumber} |
| <br/> |
| I choose: ${form2bean.choose} |
| <br/> |
| Sex: <i18n:text xmlns:i18n="http://apache.org/cocoon/i18n/2.1">${form2bean.sex}</i18n:text> |
| |
| <table border="1"> |
| <tr> |
| <th>id</th> |
| <th>firstName</th> |
| <th>lastName</th> |
| <th>phone</th> |
| <th>email</th> |
| </tr> |
| <jx:forEach var="item" items="${form2bean.contacts}"> |
| <tr> |
| <td>${item.id}</td> |
| <td>${item.firstName}</td> |
| <td>${item.lastName}</td> |
| <td>${item.phone}</td> |
| <td>${item.email}</td> |
| </tr> |
| </jx:forEach> |
| </table> |
| |
| <br/> |
| <a href="editForm2.do">Do it again</a> |
| </column> |
| </row> |
| </body> |
| </document> |