# <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %> <%@ page import="com.laszlomarket.ItemService" %> <%@ page import="java.util.List" %> Example 1

Example 1

<% /* * This code will generate a list of objects from the * database and place a reference to this list in the * request object. * */ List itemList = ItemService.getInstance().getItemList(); request.setAttribute("items", itemList); %>

List of items in item table of database test.

Sumbit to add an item:

name:
description: