Multiple choice technology

For a web application with multiple struts portlets,the best way to define the intitial views of individual portlet is to specify them:

  1. In the Welcome file list in the application's web.xml

  2. In the viewMode.page preferences attribute in the individual portlet.xml

  3. As viewMode properties in the actions section in the individual struts-config.xml

  4. As view attributes in the supports section of individual portlet.xml

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

For Struts portlets in WPS, the initial view for VIEW mode is configured using the viewMode.page preference in portlet.xml. This portlet-specific approach allows each portlet to define its own default view, which is more flexible than application-wide welcome file lists.