Java Reference
In-Depth Information
Figure 3.12: After creating a contact
To send the user from the contact list to the form, add a Create a New
Contact link in contact_list.jsp :
Download email_05/web/WEB-INF/jsp/contact_list.jsp
<s:link beanclass="stripesbook.action.ContactFormActionBean">
Create a New Contact
</s:link>
The result of using the form to create a new contact fictitiously named
Kaylyn Shallenberger is shown in Figure 3.12 .
There's only one more thing we need to do: add the Update links in the
Action column.
Updating Information with a Prepopulated Form
Clicking the Update link should open the contact form prepopulated
with the selected contact's information, as in Figure 3.13 , on the next
page. First, create the link with the selected contact's ID as a parameter:
Download email_05/web/WEB-INF/jsp/contact_list.jsp
<s:link beanclass="stripesbook.action.ContactFormActionBean">
<s:param name="contactId" value="${contact.id}"/>
Update
</s:link>
 
 
 
Search WWH ::




Custom Search