FileDocCategorySizeDatePackage
TabContentServlet.javaAPI DocExample1120Tue May 30 08:10:50 BST 2006com.oreilly.ajax.servlet

TabContentServlet

public class TabContentServlet extends org.ajaxtags.servlets.BaseAjaxServlet

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetXmlContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)

    String tab = request.getParameter("tab");
    String returnString = "<H1>Tab parameter is null, please make sure you pass it in the request.</H1>";
    if (tab == null)
    {
      return (returnString);
    }
    if (tab.equals("Users"))
    {
      returnString = UserManager.getUsersView();
    }
    else if (tab.equalsIgnoreCase("Products"))
    {
      returnString = ProductManager.getProductsView();
    }
    else if (tab.equalsIgnoreCase("Carts"))
    {
      returnString = ShoppingCartManager.getShoppingCartView();
    }
    System.out.println(returnString);
    return (returnString);