{
Output outItemCommands = response.createOutput("itemCommands");
CommandInfo viewCmd = listing.getCommand(ListingDescriptor.COMMAND_VIEW);
if (viewCmd != null && viewCmd.checkPermission(request))
{
Command cmd = viewCmd.createCommand(request, response, context);
outItemCommands.add(cmd);
}
outItemCommands.setAttribute("label", listing.getItemCommands().getLabel());
outList.setAttribute("itemCommands", outItemCommands);
for (Iterator i = listing.getItemCommands().iterator(); i.hasNext();)