%@ page language ="java" errorPage="ExceptionHandler.jsp"%> <%@ page import ="java.sql.*" %> <%@ page session="true"%> <%@ page import ="db.*" %> <%@ page import ="java.util.Random" %> <%! ResultSet rstheam=null; String theam=""; ResultSet rs=null; ResultSet rs_sms=null; String uname="nolog"; Random generator = new Random(); int sms_int =generator.nextInt(9); String user_session=""; Connection con=null; int maximum = 0; String mob=""; String address=""; String uniquebid=""; String gift=""; String dispdt=""; String pop=""; %> <% session.setAttribute("user_name", uname); con=ConnectionFactory.getConnection(); Statement sttheam = con.createStatement(); rstheam=sttheam.executeQuery("select * from theams where display='Y'"); while(rstheam.next()) { theam=rstheam.getString("color_pg"); } rstheam.close(); sttheam.close(); if(sms_int==0) { sms_int=1; } Statement stpop = con.createStatement(); ResultSet rspop=stpop.executeQuery("select * from showpopup where popidval="+1); while(rspop.next()) { pop=rspop.getString("showing"); } rspop.close(); stpop.close(); %>