,ch14.9433  Page 447  Monday, February 14, 2005  12:55 PM
Tile's context attributes, and inserts the corresponding definition. If the path doesn't
match a definition, the
lets the base
the request.
Using this approach you can elminate almost all direct references to JSPs in your
struts config.xml file. You will end up with many actions and definitions; for each
action, you eliminate one JSP file that you would have had to maintain. Instead of
JSP pages, you will have
 actions mappings in your struts config.xml file.
Local and global forwards can use this technique. The common convention is to
specify definition names using a dot ( . ) separator instead of a slash ( / ).
See Also
For more information, check out the JavaDocs for the
. These
are included with Struts, or you can find this documentation at http://struts.apache.org/
14.4 Creating Tabbed Panes
You want your pages to display as tabbed folders.
Use the Tiles Tabbed Layout. Example 14 7 shows the JSP page (tabsLayout.jsp) that
lays out components in a tabbed fashion.
Example 14 7. Tiles tabbed layout
<%@ taglib uri="http://struts.apache.org/tags bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags tiles" prefix="tiles" %>
  Tabs Layout .
  This layout allows to render several tiles in a tabs fashion.
  @param tabList A list of available tabs. We use MenuItem to carry data (name, body,
icon, ...)
  @param selectedIndex Index of default selected tab
  @param parameterName Name of parameter carrying selected info in http request.
Use tiles attributes, and declare them as page java variable.
These attribute must be passed to the tile.
Creating Tabbed Panes | 447
This is the Title of the Book, eMatter Edition
Copyright   2005 O'Reilly & Associates, Inc. All rights reserved.






 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

strutsweb hosting


Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved