Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Change the theme attribute for the form tag back to xhtml. Notice when you view the source of edit.jsp after it is rendered in the browser that there is a class named tdLabel applied to the table column that contains the label. This CSS class controls the position of the label in the table column. The tdLabel style is defined in /Themes_Struts2_Mvnthemes/struts/xhtml/styles.css. The link to this style sheet was included in edit.jsp’s head section when you add the s:head tag to edit.jsp.

Load this style sheet in your browser (in the example application the link is http://localhost:8080/Themes_Struts2_Mvnthemes/struts/xhtml/styles.cssImage Modified if your Servlet container is running on localhost, port 8080). You’ll see the following:

...