<%@ page import="javax.servlet.*" %> <%@ page import="javax.servlet.http.*" %> <%@ page import="java.sql.*" %> <%@ page import="javax.naming.NamingException"%> <%@ page import="javax.naming.InitialContext"%> <%@ page import="javax.sql.DataSource"%> <% Connection dbCon = null; PreparedStatement statprod = null; PreparedStatement statfeature = null; PreparedStatement stat1 = null; ResultSet rsprod = null; ResultSet rsfeature = null; String strprod="select * from vendorproduct where approve=? and featureclass=?"; String strclass="select * from cookingclass where feature=?"; String strbook="select * from vendorproduct where category=? and featurebook=?"; String featureclass = "yes"; String featurebook = "yes"; int catid=0; int bookcat=4; String subcat = null; try { //javax.naming.Context initialContext = new javax.naming.InitialContext(); //javax.naming.Context envContext = (javax.naming.Context) initialContext.lookup("java:/comp/env"); //javax.sql.DataSource dataSource = (javax.sql.DataSource) envContext.lookup("jdbc/mssql"); //dbCon = dataSource.getConnection(); Class.forName("com.mysql.jdbc.Driver").newInstance(); //dbCon = DriverManager.getConnection("jdbc:mysql://localhost:3306/maheks_mahek","maheks","mahak"); ServletContext ctx = getServletContext(); String url=ctx.getInitParameter("url"); String user=ctx.getInitParameter("user"); String pw=ctx.getInitParameter("password"); dbCon = DriverManager.getConnection(url,user,pw); //dbCon = DriverManager.getConnection("jdbc:mysql://localhost:3306/myrecipe","root",""); statprod = dbCon.prepareStatement(strprod); statprod.setString(1,featureclass); statprod.setString(2,featureclass); rsprod=statprod.executeQuery(); statfeature=dbCon.prepareStatement(strclass); statfeature.setString(1,featureclass); rsfeature=statfeature.executeQuery(); %>
 

Welcome to Mahek’s Cooking Classes. Cooking is an experience to be enjoyed and it not necessary be a task to be completed in the kitchen. Here, at my classes, women of all ages are welcomed – beginners as well as experienced housewives.
A variety of cuisines are taught by me to suit your personal needs and to cater to the tastes of your family and loved ones.
Come and learn cooking in a friendly environment as per your convenience as the timings and days for the classes are flexible.

 

All the cuisines will be prepared in your presence and you can take your share back home for your family too.
All the classes are one session classes conducted on weekdays as well as on weekends to suit working women too. The classes are conducted in the afternoons between 2:00 pm and 5:00 pm. All the dishes are prepared fresh in the class itself.

The students will get neat and accurate notes for all the classes attended. Some classes are also taught practically. In the Chocolate class the students will be making the chocolates themselves. Students attending the Cake Workshop will be given fresh cream and nozzles to practice all the icing techniques till they perfect it. The Mexican class is also a lot of fun as the students enjoy making Nachos, Tacos and Enchiladas.

All women are blessed with the talent of cooking, so come and explore that talent and you will definitely be delighted with the appreciation of your efforts.


 
<% int pagebreak=0; for (int i=1; i<=2;i++) { if (rsfeature.next()) { pagebreak=pagebreak+1; %> <% if (pagebreak % 2!=0) { %> <% } } } %>
Featured Classes
&startvalue=0" class="green-text"><%=rsfeature.getString("coursename")%>
<%=rsfeature.getString("weekdays")%>
Session : <%=rsfeature.getString("timing")%>
&add=1" >
 
 
<% for (int i=1;i<=3;i++) { if (rsprod.next()) { %> <% } } %>
Featured Products
     
<%=rsprod.getString("prodtitle")%>
 
Reference
Russian Delicacies - Author Chef
Chinese cooking in 20 mins
Oriental cuisines-Author Chef Chang
The spice of Indian curry
Sushi from japan
 
Quick links
 
 
<% statprod.close(); } catch (java.sql.SQLException e2) { out.println(e2.toString()); } catch (Exception e) { out.println("

ERROR!

"); out.println("Error = " + e.getMessage() + "
");
														e.printStackTrace(new java.io.PrintWriter(out));
														out.println("
"); return; } finally { try { if(dbCon != null) dbCon.close(); } catch(SQLException sqle) {} } %>
© 2001-2007 Mahek’s Cooking Classes. | Web design by livepages