JSP Tag Libraries

Скачать в pdf «JSP Tag Libraries»


</p>


</card>


</ejb:iterate> 2#


</wml>


О


0


Makes sure that this page won’t get cached.


Includes the user menu view in a template We include the user menu view in a template card. By doing so, the user menu will be inherited by all cards of this deck, making any options available in the template also appear in all cards.

Add the home interface of the CatalogueManager.


Creates a remote interface for the CatalogueManager We use the home interface of the CatalogueManager to retrieve a remote interface for the same EJB.


Iterates through the categories We use the <iterate> tag of the EJB taglib to iterate through all available Category EJBs. For each Category we show a link that will go to a card defined in this deck.


The link will contain the keyword cat followed by the current Category’s ID. For the visible part of the link, we use the name of the Category. The resulting card will look like
figure 14.7


g


h


i


j



Creates a link to a dynamically created card.
Displays the link name using the category name.


Ends the Iteration of categories.


Iterates through the categories We iterate through all Category EJBs again, and create one card per Category, using the keyword cat and the Category’s ID as card ID.

For each category, adds a card.




Sets the card’s name using the category name. Iterates through the products Inside each card, we iterate through the current Category’s Product EJBs and display a link built up of the keyword prod. This we add the Product SKU to as a target of the link, with the Product name as the name of the link. Each such card will appear as in
figure 14.8 when selected.

Скачать в pdf «JSP Tag Libraries»