Java Reference
In-Depth Information
Figure 8.2: The Message List page
To create the column of checkboxes in the message list, we'll use the
<s:checkbox> tag:
Download email_19/web/WEB-INF/jsp/message_list.jsp
<s:form beanclass="stripesbook.action.MessageListActionBean">
<d:table name="${folder.messages}" requestURI="" id="message"
pagesize="10" defaultsort="2" defaultorder="descending">
<d:column>
<s:checkbox name="selectedMessages" value="${message.id}"/>
</d:column>
<!-- ... -->
</d:table>
</s:form>
The checkboxes are bound to the selectedMessages property of Message-
ListActionBean . For every checkbox that the user checks, the value that's
in the value= attribute will be sent as input—in this case, the ID of the
corresponding message.
 
 
Search WWH ::




Custom Search