Preferences for Struts and Struts development tools

You can set Struts and Struts tools preferences from the Preferences menu.

The preferences for the Web diagram editor include the following categories:

 

Struts preferences

Preferences menu | Web Tools | Struts and JSF preferences

Preference Description
Default Java package prefix Is used by various Struts wizards when building package names for new Java classes such as Action and ActionForm subclasses.

 

General preferences for Struts tools

Preferences menu | Web Tools | Struts tools

Preference Description
Restart project when a Struts configuration file changes Determines whether the WebSphere Application Server test server is automatically restarted when a registered Struts configuration file changes.

 

Preferences for Struts support in Page Designer

Preferences menu | Web Tools | Page Designer Struts Support

Design View rendering settings for Struts tags
Preference Description
Display error messages for <html:errors> tag Indicates whether the <html:errors> tag should render error messages. The error messages displayed are either the default list or the ones specified in the JSP file.
Error messages to display for <html:errors> tag Specifies the default error messages to be displayed for <html:errors> tags. You can override these in each JSP file by specifying the keys of error messages in the application's resource bundle.
List of options for <html:options> tag Specifies the list of options to be rendered for <html:options> tags.
Evaluate conditional logic tags to true Indicates whether the conditional logic tags such as <logic:equal> should be evaluated to true. If this option is on, the body of the conditional tag will be rendered. If this option is off, nothing will be rendered for the conditional logic tag. You can override this option in each JSP file.
Count for <logic:iterate> tag Specifies the number of times the body of a <logic:iterate> tag should be rendered. You can override this option in each JSP file.

Design View's rendering settings for Struts v1.1 tags
Preference Description
Display messages for <html:messages> tag Indicates whether the <html:messages> tag should render messages. The messages displayed are either the default list or the ones specified in the JSP file.
Messages to display for <html:messages> tag Specifies the default messages to be displayed for <html:messages> tags. You can override these in each JSP file by specifying the keys of messages in the application's resource bundle.

 

Related concepts

Struts: a framework for developing Web applications
Page Designer

 

Related tasks

Setting preferences for Struts development tools
Creating well-architected Web applications using Struts

Feedback