<%@ page language="java" errorPage="ErrorPage.jsp" import="java.sql.*,java.sql.ResultSet,java.sql.Statement,javax.servlet.*,java.util.*,java.net.URL,com.massagestore.*"%> <%@ include file="hometop.jsp" %> <% Vector V1=new Vector(); Vector V2=new Vector(); String cat_desc=null; String cat_img=null; String subCategory = null; int i=0; subCategory = request.getParameter("subcat_name"); // get the category name from the querystring String cat_name=request.getParameter("cat_name"); /*format.setMaximumFractionDigits(2); format.setMinimumFractionDigits(2);*/ %>
<% String cat=null; try { V1=com.massagestore.Category.getAllMainCategories(); int count=V1.size(); while (i <% //if category name matches with the name send in querystring then display subcategories if(cat.equals(cat_name)) { V2=com.massagestore.Category.getAllSubCategories(cat); int count2=V2.size(); int j=0; while( j <% }//end of inner while }//end of if }//end of outer while }//end of try catch( Exception e ) { System.err.println(e.getMessage()); } %>
<%=cat%>
  <%=name%>
Featured Items
Special Items
Home Page
Contact Us
<%if(cart.getTotalItems()==0){%> <% }else{ %> Check Out <% } %>
<% //**************End Of Main and SubCategory links************************* //**************Getting Detials of an Item************************* String itemCode = null; itemCode = request.getParameter("itemCode"); int item_Code = 0; item_Code = Integer.parseInt(itemCode); Item item = new Item(item_Code); %> <% if (item.getImageBig() != null && item.getImageBig() != "image/") { %> <% } }//End of if else { %> <% }//End of else %> <% String features = null; features = item.getFeatures(); //out.println(features); if (features != null) { %>
 <%out.println(item.getName());%>
<% if (item.getDiscount() != 0) { out.println(""); }//End of If %> Price: <%=item.getDisplaySellingPrice()%> <% if(item.getQtyInStock() == 0) { out.println("Out Of Stock"); } else { %> <% }//End of else %>
<% if (item.getImageCaption()!= null) { %>
<%=item.getImageCaption()%>

<% if (item.getDescription() != null) { out.println(item.getDescription()); }//End of If %>

FEATURES
<% StringTokenizer st = new StringTokenizer(features,";"); while (st.hasMoreTokens()) { out.println(st.nextToken()+"
"); } }//End of If if (item.getSpecialOffer() != null) { %>
Our Package. Take advantage. Call for Package Price.
<% StringTokenizer st = new StringTokenizer(item.getSpecialOffer(),";"); while (st.hasMoreTokens()) { out.println(st.nextToken()+"
"); } } %>
<%@ include file="homefooter.jsp" %>