1000 Projects

Online Advertising Agency Project Documentation

June 23, 2012 posted in CSE Projects with Source Code, J2EE Projects, Java Based Projects by Ramesh Gavva/Kasarla shanthan

This project provides sample code and documentation for Online Advertising Agency Project to all final semester students at engineering level, Degree level and also Masters Level. This project provide advertising facilities at online using internet world.


Online Advertising Agency Project trail application module code:

import javax.servlet.http.*;
import javax.servlet.*;
import java.sql.*;
import java.io.*;
import java.util.*;
public class trialapp extends HttpServlet
{
String trialno,applno,subid,msg=" ",img;
int trial_no,appno;
ResultSet rs,rs1;
Statement stmt,stmt1;
PreparedStatement pstmt;
Connection con;
String str,str1,str2;
public void init(ServletConfig sc)throws ServletException
{
super.init(sc);
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:advt","scott","tiger");
System.out.println("connection established");
}catch(Exception e){}
}
public void doPost(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
{
res.setContentType("text/html");
PrintWriter pw=res.getWriter();
applno=req.getParameter("applno");
appno=Integer.parseInt(applno);
trialno=req.getParameter("r1");
subid=req.getParameter("subid");
trial_no=Integer.parseInt(trialno);
img=req.getParameter("img")+".gif";
System.out.println(img);
try
{
stmt=con.createStatement();
rs=stmt.executeQuery("select typeid from subtypes1 where applno="+appno);
rs.next();
str=rs.getString(1);
stmt.close();
stmt1=con.createStatement();
rs1=stmt1.executeQuery("select images from user_applications where applno="+appno);
rs1.next();
str1=rs1.getString(1);
stmt1.close();
if(trial_no==1)
{

if(str.startsWith("N"))
{
if(subid.equals("halfqtr"))
{
pw.println("");
pw

Download  the Online Advertising Agency Project Documentation


The following two tabs change content below.
Hi, Find more on FB...

Latest posts by Ramesh Gavva/Kasarla shanthan (see all)



‹‹‹ Advertising agency java Project

Online Advertising Agency Project Report ›››

Custom Search

Leave Your Comment

 
Powered by 1000Projects.org , All rights Reserved, Copyright Policy