In this section, you will learn how Workshop for JSP allows you to easily make changes to your web pages using the JSP editor, the Tag Libraries View, the Smart Editors and the Property Sheet. You will also learn how to use code completion to save time as you work.
home.jsp
in the Package Explorer to open this page.
The Properties view shows the Smart Editor for the Struts html:select tag.
shoppingcart.jsp
in the Package Explorer to open this page.
The Property Sheet for the Struts html:form tag is activated.
Notice the browse button (...) that displays. You can click this button to select a Struts action for this form.
login.jsp
in the Package Explorer to open this page.
login.jsp
page, locate the line in the Source pane that contains this html:text tag:
<html:text property="username"/>
username
from this code line.
This displays a list of all the property names of the form bean associated with the form containing the edit field. In this case, four entries are displayed: multipartRequestHandler, password, servletWrapper and username.
Workshop inserts the username property.
checkoutPayment.jsp
in the Package Explorer to open this page.
Checkout for:
The following code is generated in the Source pane:
<b>Checkout for: </b>
A graphical representation of the bean:write tag displays in the Design editor. In the Source editor, this code for the bean:write tag is generated:
<bean:write name="profile" property="firstName"/>
login.jsp
in the Package Explorer to open this page.
This selects the Struts form tag and its content.
The Form Tag wizard displays.
The wizard generates the source code for the entire Struts form.
Click one of the following arrows to navigate through the tutorial: