You are on page 1of 63

Sheet No____

PROGRAM: <html> <frameset rows="25%,*"> <frame src="top.html" /> <frameset cols="25%,*"> <frame src="left.html" /> <frame src="right.html" /> </frameset> </frameset> <haed> </head> <body> </body> </html> <html> <head> <font color="red"> <center> <h1>VELAGAPUDI RAMAKRISHNA SIDDHARTHA ENGINEERING COLLEGE</h1> <h2> VIJAYAWADA</h2> </font> </center> </head> <body> <center> <img src="logo.jpg" alt="logo" width="150" height="100"/> </center> <marquee behaviour="alternate" > <FONT COLOR="blue"> WELCOME</font></marquee>

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ </body> </html> <html> <head> </head> <body> <img src="vrsec.jpg" alt="vrsec" width="300" height="450" align="right"/> </body> </html> <html> <head> </head> <body style="background color:violet"> <center> <h1> About the College:</h1> </center> <p>The institution stands for Humanity, Tolerance and Peace. And Treated as BEST COLLEGE in Andhra Pradesh. This is ideally established in 1977 and located in a vast expanse of 40 acres of land on the out skirts of Vijayawada city at a distance of about 6 Kms from the city centre. The departmental buildings are located in close proximity of each other with wide open spaces all around. Affliation Changed to JNTU </p> <h1> courses in the college</h1> <table> <a href="cs.html"> <tr>M.TECH </tr></a> <a href="mca.html"> <tr> MCA</tr></a> <tr> B.TECH</tr> <tr> B.FORM</tr> <tr> LLB</tr> </table> </body> </html> VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ <html> <head> </head> <body style="background-color:pink"> <h1>BRANCHES :</h1> <h2>Computers</h2> <h2>Electrical</h2> <h2>Mechanical</h2> <h2>Civil</h2> </body> </html>

OUTPUT: VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

PROGRAM: <html> <head> <style type="text/css"> body{background -color:'orange'; background-image:url("aa.jpg"); background-repeat: no-repeat; background-position:center} h2 { background-color:black; } h2 {text-align:center;} p.date {text-align:right;} h2.padding { padding-top:4px; padding-bottom:2px; padding-right:5px; padding-left:5px; } h2{color:red;} </style> </head> <body> <h2 class="padding">VELAGAPUDI RAMAKRISHNA SIDHARDA ENGINEERING COLLEGE</h2> <p class="date">16-12-2010</p> </body> </html> VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

OUTPUT:

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ PROGRAM: <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Edited by XMLSpy --> <?xml-stylesheet type="text/xsl" href="ex.xslt"?> <students xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ex.xsd"> <student> <stdno>cs01</stdno> <firstname>Divya</firstname> <lastname>Pendem </lastname> <branch>cse</branch> <city>Vijayawada</city> <state>AP</state> <country>India</country>

</student> <student> <stdno>cs02</stdno> <firstname>aruna</firstname> <lastname>Pendem </lastname> <branch>cse</branch> <city>Guntur </city> <state>AP</state> <country>India</country> </student> <student> <stdno>ee03</stdno> <firstname>Rajesh </firstname> <lastname>Pendem </lastname>

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ <branch>eee</branch> <city>Vijayawada</city> <state>AP</state> <country>India</country> </student> </students>

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

Output:

PROGRAM VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ Registration.java /*<applet code="registration.class" width="400" height="500"></applet>*/ import java.applet.*; import java.awt.*; import java.awt.event.*; public class registration extends Applet implements ActionListener { Label fn,ln,dob,gender,lang,occu,address,count,pin,phno; Button sub,res; TextField first,last,occ,pincode,ph,coun; CheckboxGroup radioGroup; Checkbox female,male; Checkbox tel,eng,hin; TextArea addr; Choice day,month,year; Label error; public void init() { sub = new Button("Submit!"); res = new Button("Clear!"); error=new Label(); fn=new Label("FirstName"); ln=new Label("LastName"); dob=new Label("DateOfBirth"); gender=new Label("Gender"); lang=new Label("Languages"); occu=new Label("Occupation"); address=new Label("Address"); count=new Label("Country"); pin=new Label("PinCode"); phno=new Label("Phone No"); first = new TextField(); last = new TextField(); occ = new TextField(); pincode = new TextField(); ph = new TextField(); coun = new TextField(); radioGroup = new CheckboxGroup(); female = new Checkbox("Female", radioGroup,false); male = new Checkbox("Male", radioGroup,false); tel=new Checkbox("Telugu",false); eng=new Checkbox("English",true); hin=new Checkbox("Hindi",false); addr=new TextArea("Address Here",4,10); day=new Choice(); month=new Choice(); year=new Choice(); day.addItem("1"); day.addItem("2"); day.addItem("3"); day.addItem("4"); day.addItem("5"); day.addItem("6"); VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ day.addItem("7"); day.addItem("8"); day.addItem("9"); day.addItem("10"); day.addItem("11"); day.addItem("12"); day.addItem("13"); day.addItem("14"); day.addItem("15"); day.addItem("16"); day.addItem("17"); day.addItem("18"); day.addItem("19"); day.addItem("20"); day.addItem("21"); day.addItem("22"); day.addItem("23"); day.addItem("24"); day.addItem("25"); day.addItem("26"); day.addItem("27"); day.addItem("28"); day.addItem("29"); day.addItem("30"); day.addItem("31"); month.addItem("January"); month.addItem("February"); month.addItem("March"); month.addItem("April"); month.addItem("May"); month.addItem("June"); month.addItem("July"); month.addItem("August"); month.addItem("September"); month.addItem("October"); month.addItem("November"); month.addItem("December"); year.addItem("2005"); year.addItem("2006"); year.addItem("2007"); year.addItem("2008"); year.addItem("2009"); year.addItem("2010"); year.addItem("2011"); error.setBounds(100,450,110,25); error.setBackground(Color.pink); fn.setBounds(50,30,70,20); fn.setBackground(Color.pink); ln.setBounds(50,60,70,20); ln.setBackground(Color.pink); dob.setBounds(50,90,70,20); dob.setBackground(Color.pink); gender.setBounds(50,120,70,20); gender.setBackground(Color.pink); lang.setBounds(50,150,70,20); lang.setBackground(Color.pink); occu.setBounds(50,180,70,20); occu.setBackground(Color.pink); address.setBounds(50,210,70,20); address.setBackground(Color.pink); count.setBounds(50,310,70,20); count.setBackground(Color.pink); VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ pin.setBounds(50,340,70,20); pin.setBackground(Color.pink); phno.setBounds(50,370,70,20); phno.setBackground(Color.pink); first.setBounds(130,30,100,20); last.setBounds(130,60,100,20); occ.setBounds(130,180,100,20); pincode.setBounds(130,340,100,20); ph.setBounds(130,370,100,20); coun.setBounds(130,310,100,20); female.setBounds(130,120,70,25);female.setBackground(Color.pink); male.setBounds(210,120,50,25);male.setBackground(Color.pink); tel.setBounds(130,150,60,25);tel.setBackground(Color.pink); eng.setBounds(190,150,60,25);eng.setBackground(Color.pink); hin.setBounds(260,150,60,25);hin.setBackground(Color.pink); addr.setBounds(130,210,150,85); day.setBounds(130,90,50,35); month.setBounds(190,90,70,35); year.setBounds(270,90,60,35); sub.setBounds(100,400,50,25); res.setBounds(190,400,50,25); add(fn); add(ln); add(dob); add(gender); add(lang); add(occu); add(address); add(count); add(pin); add(phno); add(first); add(last); add(occ); add(pincode); add(ph); add(coun); add(error); add(female); add(male); add(addr); add(tel); add(eng); add(hin); add(day); add(month); add(year); add(sub); add(res); res.addActionListener(this); sub.addActionListener(this); setLayout(null); setBackground(Color.pink); } VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ public void actionPerformed(ActionEvent ae) { if(ae.getSource()==res) { first.setText(""); last.setText(""); occ.setText(""); pincode.setText(""); ph.setText(""); coun.setText(""); addr.setText(""); error.setText(""); } if(ae.getSource()==sub) { if(((first.getText()).equals(""))||((last.getText()).equals(""))||((occ.getText()).equals(""))|| ((pincode.getText()).equals(""))||((ph.getText()).equals(""))||((coun.getText()).equals(""))) error.setText("Enter All fileds"); } } }

OUTPUT:

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

PROGRAM MenuCreation.java import java.awt.event.KeyEvent; import javax.swing.JFrame; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.*; import java.awt.Event; public class MenuCreation VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ { public static void main( String args[]) { JFrame frame = new JFrame("MenuSample Example"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JMenuBar menuBar = new JMenuBar(); JMenu fileMenu = new JMenu("File"); fileMenu.setMnemonic(KeyEvent.VK_F); menuBar.add(fileMenu); JMenu editMenu = new JMenu("Edit"); editMenu.setMnemonic(KeyEvent.VK_E); menuBar.add(editMenu); JMenu formatMenu = new JMenu("Format"); formatMenu.setMnemonic(KeyEvent.VK_E); menuBar.add(formatMenu); JMenu viewMenu = new JMenu("View"); viewMenu.setMnemonic(KeyEvent.VK_V); menuBar.add(viewMenu); JMenuItem newMenuItem = new JMenuItem("New", KeyEvent.VK_N); newMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, Event.CTRL_MASK)); fileMenu.add(newMenuItem); JMenuItem openMenuItem = new JMenuItem("Open", KeyEvent.VK_O); fileMenu.add(openMenuItem); JMenuItem exitMenuItem = new JMenuItem("Exit", KeyEvent.VK_E); exitMenuItem.add(new JSeparator()); fileMenu.add(exitMenuItem); JMenuItem undoMenuItem = new JMenuItem("Undo", KeyEvent.VK_U); editMenu.add(undoMenuItem); editMenu.addSeparator(); undoMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Z, Event.CTRL_MASK));

JMenuItem CutMenuItem = new JMenuItem("Cut", KeyEvent.VK_C); editMenu.add(CutMenuItem); JMenuItem StatusbarMenuItem = new JMenuItem("Statusbar", KeyEvent.VK_S); viewMenu.add(StatusbarMenuItem); frame.setJMenuBar(menuBar); frame.setSize(350, 250); frame.setVisible(true); } }

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

OUTPUT:

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

PROGRAM import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.sql.*; public class homepage { public static void main(String args[]) { new homepage1(); } } class homepage1 extends JFrame implements ActionListener { VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ JFrame Frame; JMenuBar Menubar; JPanel p; JLabel l,l1,l2,l3; JMenu home,departments,staff,alumni,login; JMenuItem ugprog,pgprog,search,login1,cse,ece,mca,mtech; homepage1() { Frame=new JFrame("College Website"); Frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); p=new JPanel(); Menubar=new JMenuBar(); home=new JMenu("Home"); departments=new JMenu("Departments"); staff=new JMenu("Staff"); alumni=new JMenu("Alumni"); login=new JMenu("Login"); ugprog=new JMenu("UG Programs"); pgprog=new JMenu("PG Programs"); cse=new JMenuItem("CSE"); ece=new JMenuItem("ECE"); mca=new JMenuItem("MCA"); mtech=new JMenuItem("MTECH"); search=new JMenuItem("Search Staff"); login1=new JMenuItem("IEEE Login"); p.setLayout(null); Frame.add(p); l=new JLabel(new ImageIcon("logo.jpg")); p.add(l).setBounds(120,0,560,70); l1=new JLabel(new ImageIcon("vrsec.jpg")); p.add(l1).setBounds(0,150,260,410); l2=new JLabel("About College:"); p.add(l2).setBounds(250,140,560,70); l3=new JLabel("The institution stands for Humanity, Tolerance and Peace. This is ideally established in 1977."); p.add(l3).setBounds(300,200,560,70); ugprog.add(cse); ugprog.add(ece); pgprog.add(mca); pgprog.add(mtech); departments.add(ugprog); departments.addSeparator(); departments.add(pgprog); staff.add(search); login.add(login1); Menubar.add(home); Menubar.add(departments); Menubar.add(staff); Menubar.add(alumni); Menubar.add(login); ugprog.addActionListener(this); Frame.setJMenuBar(Menubar); Frame.setSize(840,540); VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ Frame.setVisible(true); } public void actionPerformed(ActionEvent ae) { try { } catch(Exception e) { } } }

OUTPUT:

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

PROGRAM FormServlet.java import java.io.IOException; import java.io.PrintWriter; import javax.servlet.*; import javax.servlet.ServletException; VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class FormServlet extends HttpServlet { protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { getServletContext().getRequestDispatcher("/WEB-INF/pages/form.jsp").forward(req, resp); } protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String userName = request.getParameter("username"); String password = request.getParameter("password"); String email= request.getParameter("email"); String country = request.getParameter("country"); String sub = request.getParameter("newsletter"); String rec = request.getParameter("receivemail"); String receive= request.getParameter("receivenotification"); response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.write("<html><body background='5.jpg' ><br><h2> You have entered following values </h2>"); out.write("<br/>"); out.write("<table >"); out.write("<tr>"); addTableColumn(out, "username"); addTableColumn(out, userName); out.write("</tr>"); out.write("<tr>"); addTableColumn(out, "password"); addTableColumn(out, password); out.write("</tr>"); out.write("<tr>"); addTableColumn(out, "email"); addTableColumn(out, email); out.write("</tr>"); out.write("<tr>"); addTableColumn(out, "Country"); addTableColumn(out, country); out.write("</tr>"); out.write("<tr>"); addTableColumn(out, "Subscribe for news letter"); addTableColumn(out, sub); out.write("</tr>"); out.write("<tr>"); addTableColumn(out, "Receive mail from members"); addTableColumn(out, rec); out.write("</tr>"); out.write("<tr>"); addTableColumn(out, "Receive notification"); addTableColumn(out, receive); VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ out.write("</tr>"); out.write("</table></body></html>"); out.close(); } private static void addTableColumn(PrintWriter out, String value) { out.write("<td> "+ value + "</td>"); } } XML DOCUMENT <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/webapp_2_5.xsd"> <servlet> <servlet-name>FormServlet</servlet-name> <servlet-class>FormServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>FormServlet</servlet-name> <url-pattern>/FormServlet</url-pattern> </servlet-mapping> <session-config> <session-timeout> 30 </session-timeout> </session-config> <welcome-file-list> <welcome-file>home.html</welcome-file> </welcome-file-list> </web-app>

OUTPUT:

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

PROGRAM JDBCAllinOne.java import java.awt.Container; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import javax.swing.BoxLayout; import javax.swing.JButton; VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; public class JDBCAllinOne implements ActionListener { JLabel lblFname,lblLname,lblAddress,lblSalary,lblf,lbll,lbla,lbls; JLabel lblfVal,lbllVal,lblaVal,lblsVal; JTextField txtFname,txtLname,txtAddress,txtSalary; JButton btnInsert,btnUpdate,btnDelete,btnPrev,btnNext,btnClear; ResultSet rs ; public static void main(String[] args) { JDBCAllinOne obj = new JDBCAllinOne(); obj.createUI(); } private void createUI() { JFrame frame = new JFrame("JDBC All in One"); //Layout of Main Window Container c = frame.getContentPane(); c.setLayout(new BoxLayout(c,BoxLayout.Y_AXIS)); lblFname = new JLabel("First Name :"); lblLname = new JLabel("Last Name :"); lblAddress = new JLabel("Address :"); lblSalary = new JLabel("Salary :"); txtFname = new JTextField("",15);//To adjust width txtLname = new JTextField(); txtAddress = new JTextField(); txtSalary = new JTextField(); JPanel pnlInput = new JPanel(new GridLayout(4,2)); pnlInput.add(lblFname); pnlInput.add(txtFname); pnlInput.add(lblLname); pnlInput.add(txtLname); pnlInput.add(lblAddress); pnlInput.add(txtAddress); pnlInput.add(lblSalary); pnlInput.add(txtSalary); btnInsert = new JButton("Insert"); btnInsert.addActionListener(this); btnUpdate = new JButton("Update"); btnUpdate.addActionListener(this); btnDelete = new JButton("Delete"); btnDelete.addActionListener(this); btnClear = new JButton("Clear"); btnClear.addActionListener(this); JPanel pnlButton = new JPanel(new GridLayout(1,4)); pnlButton.add(btnInsert); pnlButton.add(btnUpdate); pnlButton.add(btnDelete); VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ pnlButton.add(btnClear); JPanel pnlAns = new JPanel(new GridLayout(4,2)); lblf = new JLabel("First Name :"); lbll = new JLabel("Last Name :"); lbla = new JLabel("Address :"); lbls = new JLabel("Salary :"); lblfVal = new JLabel(""); lbllVal = new JLabel(""); lblaVal = new JLabel(""); lblsVal = new JLabel(""); pnlAns.add(lblf); pnlAns.add(lblfVal); pnlAns.add(lbll); pnlAns.add(lbllVal); pnlAns.add(lbla); pnlAns.add(lblaVal); pnlAns.add(lbls); pnlAns.add(lblsVal); btnPrev = new JButton(" << "); btnPrev.setActionCommand("Prev"); btnPrev.addActionListener(this); btnNext = new JButton(" >> "); btnNext.setActionCommand("Next"); btnNext.addActionListener(this); JPanel pnlNavigate = new JPanel(new GridLayout(1,2)); pnlNavigate.add(btnPrev); pnlNavigate.add(btnNext); frame.add(pnlInput); frame.add(pnlButton); frame.add(pnlAns); frame.add(pnlNavigate); frame.pack(); frame.setVisible(true); } @Override public void actionPerformed(ActionEvent evt) { String cmd = evt.getActionCommand(); if(cmd.equals("Insert")) { insertData(); }else if(cmd.equals("Update")) { updateData(); }else if(cmd.equals("Delete")) { deleteData(); }else if(cmd.equals("Prev")) { previous(); }else if(cmd.equals("Next")) { next(); }else if(cmd.equals("Clear")) VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ { clearControls(); } } private void insertData() { Connection con; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con = DriverManager.getConnection("jdbc:odbc:database"); String sql = "Insert Into Emp (FName,LName,Address,Salary) " +Values '"+txtFname.getText() +"','"+txtLname.getText()+"','"+txtAddress.getText()+"','"+ txtSalary.getText()+"')"; Statement statement = con.createStatement(); statement.execute(sql); createMessageBox("Inserted Successfully"); clearControls(); } catch(Exception e) { createMessageBox(e.getMessage()); } } private void updateData() { Connection con; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con = DriverManager.getConnection("jdbc:odbc:database"); String sql = "Update Emp Set LName='"+txtLname.getText()+"'," + "Address='"+txtAddress.getText()+"',Salary='"+txtSalary.getText()+"'Where FName='"+txtFname.getText()+"'"; Statement statement = con.createStatement(); statement.execute(sql); createMessageBox("Updated Successfully"); clearControls(); } catch(Exception e) { createMessageBox(e.getMessage()); } } private void deleteData() { Connection con; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con = DriverManager.getConnection("jdbc:odbc:database"); VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ String sql = "delete from Emp where FName = '"+txtFname.getText()+"'"; Statement statement = con.createStatement(); statement.execute(sql); createMessageBox("Record of "+txtFname.getText()+" Deleted Successfully"); clearControls(); } catch(Exception e) { createMessageBox(e.getMessage()); } } private void previous() { try { if(rs == null) { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:database"); String sql = "Select FName,LName,Address,Salary from Emp"; Statement statement= con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE); rs = statement.executeQuery(sql); } if(rs.previous()) { populateControls(); } } catch(Exception e) { e.printStackTrace(); } } private void next() { try { if(rs == null) { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:database"); String sql = "Select FName,LName,Address,Salary from Emp"; Statement statement = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY) ; rs = statement.executeQuery(sql); } if(rs.next() && !rs.isAfterLast())//After Last was giving invalid cursor state error { VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ populateControls(); } } catch(Exception e) { e.printStackTrace(); } } private void createMessageBox(String msg) { JFrame frame = new JFrame("Result"); JLabel lbl = new JLabel(msg); frame.add(lbl); frame.setSize(200,200); frame.setVisible(true); } private void clearControls() { String empty = ""; txtFname.setText(empty); txtLname.setText(empty); txtAddress.setText(empty); txtSalary.setText(empty); lblfVal.setText(empty); lbllVal.setText(empty); lblaVal.setText(empty); lblsVal.setText(empty); } private void populateControls() { try{ lblfVal.setText(rs.getString("fName")); lbllVal.setText(rs.getString("lName")); lblaVal.setText(rs.getString("Address")); lblsVal.setText(rs.getString("Salary")); txtFname.setText(lblfVal.getText()); txtLname.setText(lbllVal.getText()); txtAddress.setText(lblaVal.getText()); txtSalary.setText(lblsVal.getText()); } catch(SQLException e) { e.printStackTrace(); } } }

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

OUTPUT:

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

PROGRAM: Insertservlet.java import java.io.IOException; import java.io.PrintWriter; import javax.servlet.*; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.sql.*; import java.io.*; import java.util.Enumeration; import javax.servlet.http.*; import java.net.*; public class insertServlet extends HttpServlet { Connection con; private ServletConfig config; public void init(ServletConfig config) throws ServletException { this.config=config; } VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { getServletContext().getRequestDispatcher("/WEB-INF/pages/form.jsp").forward(req, res); } protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String user = req.getParameter("username"); String email= req.getParameter("email"); String site= req.getParameter("site"); res.setContentType("text/html"); PrintWriter out = res.getWriter(); out.println("<HTML><HEAD><TITLE>Emai List.</TITLE>"); out.println("</HEAD>"); out.println("<BODY bgColor=blanchedalmond text=#008000 topMargin=0>"); out.println("<P align=center><FONT face=Helvetica> <FONT color=fuchsia style=\"BACKGROUND-COLOR: white\"> <BIG><BIG>User Details</BIG></BIG></FONT></P>"); out.println("<P align=center>"); out.println("<TABLE align=center border=1 cellPadding=1 cellSpacing=1 width=\"75%\">"); out.println("<TR>"); out.println("<TD>Name</TD>"); out.println("<TD>E-mail</TD>"); out.println("<TD>website</TD></TR>"); int i=0; if(user.equals(" ")||!email.equals(" ")||!site.equals(" ")) { } else { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con = DriverManager.getConnection("jdbc:odbc:test","scott","tiger"); PreparedStatement pstmt =con.prepareStatement("insert into emailists values(?,?,?)"); pstmt.setString(1,user); pstmt.setString(2,email); pstmt.setString(3,site); i = pstmt.executeUpdate(); if(i>0) { Statement st=con.createStatement(); ResultSet re=st.executeQuery("select * from emailists"); while(re.next()) { out.println(); out.println("<TR>"); out.println("<TD>" + re.getString(1) + "</TD>"); out.println("<TD>" + re.getString(2) + "</TD>"); String s=re.getString(3); out.println("<TD><a href=" + s + ">" + s + "</a></TD>"); out.println("</TR>"); VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ } re.close();//Close the result set st.close();//Close statement con.close(); //Close database Connection } } catch(Exception e) { out.println(e.getMessage());//Print trapped error. } } out.println("</TABLE></P>");out.println("</br></br></br></br></br>"); out.println("<a href='home.html '>" +" Back "+ "</a>"); out.println("</FONT></BODY></HTML>"); out.close(); } public void destroy(){ } } delServlet.java import java.io.IOException; import java.io.PrintWriter; import javax.servlet.*; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.sql.*; import java.io.*; import java.util.Enumeration; import javax.servlet.http.*; import java.net.*; public class delservlet extends HttpServlet { Connection con; private ServletConfig config; public void init(ServletConfig config)throws ServletException { this.config=config; } protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { getServletContext().getRequestDispatcher("/WEB-INF/pages/form.jsp").forward(req, res); } protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String user = req.getParameter("username"); res.setContentType("text/html"); PrintWriter out = res.getWriter(); VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ out.println("<HTML><HEAD><TITLE>Emai List.</TITLE>"); out.println("</HEAD>"); out.println("<BODY bgColor=blanchedalmond text=#008000 topMargin=0>"); out.println("<P align=center><FONT face=Helvetica> <FONT color=fuchsia style=\"BACKGROUND-COLOR: white\"> <BIG><BIG>User Details</BIG></BIG></FONT></P>"); out.println("<P align=center>"); out.println("<TABLE align=center border=1 cellPadding=1 cellSpacing=1 width=\"75%\">"); out.println("<TR>"); out.println("<TD>Name</TD>"); out.println("<TD>E-mail</TD>"); out.println("<TD>website</TD></TR>"); int i=0; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con = DriverManager.getConnection("jdbc:odbc:test","scott","tiger"); PreparedStatement pstmt =con.prepareStatement("delete from emailists where name=?"); pstmt.setString(1,user); i = pstmt.executeUpdate(); if(i>0) { Statement st=con.createStatement(); ResultSet re=st.executeQuery("select * from emailists"); while(re.next()) //Fetch all the records and print in table { out.println(); out.println("<TR>"); out.println("<TD>" + re.getString(1) + "</TD>"); out.println("<TD>" + re.getString(2) + "</TD>"); String s=re.getString(3); out.println("<TD><a href=" + s + ">" + s + "</a></TD>"); out.println("</TR>"); } re.close();//Close the result set st.close();//Close statement con.close(); //Close database Connection } } catch(Exception e) { out.println(e.getMessage());//Print trapped error. } out.println("</TABLE></P>");out.println("</br></br></br></br></br>"); out.println("<a href='home.html '>" +" Back "+ "</a>"); out.println("</FONT></BODY></HTML>"); out.close(); } public void destroy() { } } VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

OUTPUT:

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

PROGRAM Sample.java <%@ page import="java.io.*" %> <%@ page import="java.util.*" %> <%@ page import="java.util.Calendar"%> <HTML> <HEAD> <TITLE>Index of Files</TITLE> </HEAD> <BODY> The date is: <%= new Date() %>. <% Calendar calendar = Calendar.getInstance(); out.println("Hai.."); if (calendar.get(Calendar.AM_PM) == Calendar.AM) { out.println("Good Morning...!!!"); } else { out.println("Good Afternoon...!!!"); } %> <H2>Index of Files</H2> <% String file = application.getRealPath("/"); File f = new File(file); String [] fileNames = f.list(); File [] fileObjects= f.listFiles(); %> <UL> <% for (int i = 0; i < fileObjects.length; i++) { VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ if(!fileObjects[i].isDirectory()){ %> <LI> <A HREF="<%= fileNames[i] %>"><%= fileNames[i] %></A> &nbsp;&nbsp;&nbsp;&nbsp; (<%= Long.toString(fileObjects[i].length()) %> bytes long) <% } } %> </UL> </BODY> </HTML>

OUTPUT:

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

PROGRAM TABLES SQL> create table username(username varchar2(20),password varchar2(20),repass varchar2(20), mail varchar2(20),mobile varchar2(11),address varchar2(20),city varchar2(20), state varchar2(20),country varchar2(20)); Table created. SQL> select *from username; USERNAME PASSWORD REPASS -------------------- -------------------- -------------------MAIL MOBILE ADDRESS CITY -------------------- ----------- -------------------- -------------------STATE COUNTRY -------------------- -------------------asdf 123456 123456 dfsdafsdaf 1234567895 asfasd sdfgdf sgdfq eefsdf vision computers computers vision.vja@gmail.com 8008169169 vijayawada vijaya ap india USERNAME PASSWORD REPASS -------------------- -------------------- -------------------MAIL MOBILE ADDRESS CITY -------------------- ----------- -------------------- -------------------STATE COUNTRY -------------------- -------------------PROGRAM 11 Start.jsp <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <%@ page import="java.sql.*,java.io.*" %> <%@ page import="java.util.*" %> <%@ page import="java.lang.*" %> <html> <head> <title>Welcome to spiro hospital web portal home page</title> VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ <link rel="stylesheet" type="text/css" href="style.css"> <script language="javascript"> function wholecheck() { if((document.getElementById("user").value=="" )|| (document.getElementById("passwd").value=="") || (document.getElementById("credit").value=="") || (document.getElementById("mail").value=="") || (document.getElementById("mobile").value=="")|| (document.getElementById("add").value=="")|| (document.getElementById("city").value=="")|| (document.getElementById("state").value=="")|| (document.getElementById("country").value=="")) { alert("Enter Unfilled area"); return false; } else { return true; } } </script> </head> <body > <% try{ String usercheck=request.getParameter("User"); if(usercheck.equals("null")) { } else { out.print("The user is already existing"+usercheck); } } catch(Exception e) { } %> <table align="left"> <form method="post" action="Validation.jsp" onclick="return wholecheck()" > <tr> <td width="50%" align="center"><font face="Book Antiqua" color="#153E7E" size="2"> <b>User Name</b></font></td> <td width="50%" bgcolor="#153E7E" align="left"> <input type="text" name="user" size="30"></td> </tr> <tr> <td width="50%" align="center"> <font face="Book Antiqua" color="#153E7E" size="2"> <b>Password</b></font></td> <td width="50%" bgcolor="#153E7E" align="left"> <input type="password" name="passwd" size="30"></td> </tr> <tr> VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ <td width="50%" align="center"> <font face="Book Antiqua" color="#153E7E" size="2"> <b>Re-Enter Password</b></font></td> <td width="50%" bgcolor="#153E7E" align="left"> <input type="password" name="credit" size="30"></td> </tr> <tr> <td width="50%" align="center"> <font face="Book Antiqua" color="#153E7E" size="2"> <b>E-Mail Id</b></font></td> <td width="50%" bgcolor="#153E7E" align="left"> <input type="text" name="mail" size="30"></td> </tr> <tr> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </tr> <tr> <td width="50%" align="center"> <font face="Book Antiqua" color="#153E7E" size="2"> <b>Mobile No</b></font></td> <td width="50%" bgcolor="#153E7E" align="left"> <input type="text" name="mobile" size="30"></td> </tr> <tr> <td width="50%"align="center"><font face="Book Antiqua" color="#153E7E" size="2"> <b>Address</b></font></td> <td width="50%" bgcolor="#153E7E" align="left"> <input type="text" name="add" size="30"></td> </tr> <tr> <td width="50%" align="center"><font face="Book Antiqua" color="#153E7E" size="2"> <b>City</b></font></td> <td width="50%" bgcolor="#153E7E" align="left"> <input type="text" name="city" size="30"></td> </tr> <tr> <td width="50%" align="center"><font face="Book Antiqua" color="#153E7E" size="2"> <b>State</b></font></td> <td width="50%" bgcolor="#153E7E" align="left"> <input type="text" name="state" size="30"></td> </tr> <tr> <td width="50%" align="center"><font face="Book Antiqua" color="#153E7E" size="2"> <b>Country</b></font></td> <td width="50%" bgcolor="#153E7E" align="left"> <input type="text" name="country" size="30"></td> </tr> <tr> <td colspan="2"><center> VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ <input type="submit" value="Submit" color="#153E7E"></center></td> </tr> </td> </tr> </form> </table> <a href="login.jsp">Home</a> </body> </html> Admin.jsp <%-Document : index Created on : Mar 23, 2010, 9:31:45 AM Author : Administrator --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <h2>Hai Admin..!!!</h2> </body> </html> AdminCheck.jsp <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <% String username=request.getParameter("USERNAME1"); String password=request.getParameter("PASSWORD12"); if((username.equalsIgnoreCase("admin"))&&(password.equalsIgnoreCase("admin"))) { response.sendRedirect("Admin.jsp"); } else { response.sendRedirect("login.jsp"); } VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ %> </body> </html> Login.jsp <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <%@ page import="java.sql.*,java.io.*" %> <%@ page import="java.util.*" %> <%@ page import="java.lang.*" %> <html> <head> <title>Welcome to spiro hospital web portal home page</title> <link rel="stylesheet" type="text/css" href="style.css"> <script type="text/javascript"> function login() { alert("valid username password"); var username=document.getElementById("USERNAME").value; var password=document.getElementById("PASSWORD").value; if((username=="") || (password=="")){ alert("Invalid username and password"); return false } else{ return true } } function loginforadmin() { //alert("valid username password"); var username=document.getElementById("USERNAME1").value; var password=document.getElementById("PASSWORD12").value; if((username=="") || (password=="")){ alert("Invalid username and password"); return false } else{ return true } } </script> </head> <body topmargin=0 marginheight="0" marginwidth="0" bgcolor="#FFFFFF"> <a href="start.jsp">NEW USER</a> <form action="Admincheck.jsp" method="post"> <p><b><font color="#000000"> ADMINISTRATOR LOGIN </font></b> </p> <p><b><font color="#000000"> USERNAME &nbsp;</font></b> <input type="Text" name="USERNAME1" id="USERNAME1" size="15"> </p> <p> <b><font color="#000000">PASSWORD </font></b> <input type="password" name="PASSWORD12" id="PASSWORD12" size="10"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></b><br> VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ <input type="Submit" Value="click here" onClick="return loginforadmin()" > </p> </form> <br> <form action="usercheck.jsp" method="post"hu> <p><b><font color="#000000"> USERS LOGIN </font></b> </p> <p><b><font color="#000000"> USERNAME &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></b> <input type="Text" name="USERNAME" id="USERNAME" size="15"> <br> <b><font color="#000000"> &nbsp;&nbsp; PASSWORD &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></b> <input type="password" name="PASSWORD" id="PASSWORD" size="10"><br> <input type="Submit" Value="click here" onClick="return login()" > </form> </body> </html> Usercheck.jsp <%@ page import="java.util.*" %> <%@ page import="java.sql.*" %> <%@ page import="javax.swing.JOptionPane" %> <% String name=request.getParameter("USERNAME"); String password=request.getParameter("PASSWORD"); Try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection dbConnection=DriverManager.getConnection("jdbc:odbc:test","scott","tiger"); Statement statement = dbConnection.createStatement(); String query="select *from Username where Username='"+name+"' and Password='"+password+"'"; ResultSet rs=statement.executeQuery(query); boolean flag=false; if(rs.next()) { %> <h2>Hai user <%=rs.getString(1)%>..!!!</h2> <%} else { %> <jsp:forward page ="login.jsp"/> <% } } catch (Exception e) { e.printStackTrace(); } %> Validation.jsp VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ <%@ page import="java.util.*"%> <%@ page import="java.sql.*"%> <%! static int c=0; int s1; %> <% String username=request.getParameter("user"); String password=request.getParameter("passwd"); String repass=request.getParameter("credit"); String mail=request.getParameter("mail"); String mobile=request.getParameter("mobile"); String add=request.getParameter("add"); String city=request.getParameter("city"); String state=request.getParameter("state"); String country=request.getParameter("country"); try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection dbConnection=DriverManager.getConnection("jdbc:odbc:test","scott","tiger"); Statement statement = dbConnection.createStatement(); String queryy="select *from Username where Username='"+username+"'"; ResultSet rs=statement.executeQuery(queryy); if(rs.next()) { String s="Choose enter another username"; response.sendRedirect("start.jsp"); } else { c++; String s=""+c; out.print(c); String query="insert into Username values ('"+username+"','"+password+"','"+repass+"','"+mail+"','"+mobile+"','"+ add+"','"+city+"','"+state+"','"+country+"')"; statement.executeUpdate(query); response.sendRedirect("login.jsp"); } } catch (Exception e) { out.println("Exception"+e); } %>

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

PROGRAM ShoppingCart.java VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ package beans; import java.lang.String; import java.lang.Integer; import java.lang.Float; import java.util.Hashtable; import java.util.Enumeration; public class ShoppingCart { protected Hashtable items = new Hashtable(); public void addItem(String itemId,String desc, float price, int quantity) { String[] item = {itemId, desc, Float.toString(price), Integer.toString(quantity)}; if (items.containsKey(itemId)) { String[] tmpItem = (String[])items.get(itemId); int tmpQuant = Integer.parseInt(tmpItem[3]); quantity += tmpQuant; tmpItem[3] = Integer.toString(quantity); } else { items.put(itemId, item); } } public void removeItem(String itemId) { if (items.containsKey(itemId)) { items.remove(itemId); } } public void updateQuantity(String itemId, int quantity) { if (items.contains(itemId)) { String[] tmpItem = (String[])items.get(itemId); tmpItem[3] = Integer.toString(quantity); } } public Enumeration getEnumeration() { return items.elements(); } public float getCost() { Enumeration e = items.elements(); String[] tmpItem; float totalCost = 0.00f; while (e.hasMoreElements()) { tmpItem = (String[])e.nextElement(); totalCost += (Integer.parseInt(tmpItem[3]) * Float.parseFloat(tmpItem[2])); } return totalCost; } public int getNumOfItems() VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ { Enumeration e = items.elements(); String[] tmpItem; int numOfItems = 0; while (e.hasMoreElements()) { tmpItem = (String[])e.nextElement(); numOfItems += Integer.parseInt(tmpItem[3]); } return numOfItems; } } Cook.jsp <%@ page import="java.util.*" %> <% Cookie[] cookies = request.getCookies(); if (cookies == null) cookies = new Cookie[0]; Date thisVisit = new Date(); cookie c = new Cookie("lastVisit",""+thisVisit); response.addCookie(c); String name = request.getParameter("name"); String value = request.getParameter("value"); Cookie added = null; if (name!=null && value!=null && name.length()>0) { added = new Cookie(name,value); response.addCookie(added); } %> <HTML> <HEAD> <TITLE>Cookie List</TITLE> </HEAD> <BODY> <H1>Cookie List</H1> This visit: <%= thisVisit %><BR> Number of cookies: <%= cookies.length %><BR> <H2>Cookies</H2> <% for (int i=0; i<cookies.length; i++) { out.println(cookies[i].getName()+":\t"+ cookies[i].getValue()+"<BR>"); if (added!=null && added.getName().equals(cookies[i].getName())) added = null; } if (added != null) out.println("new cookie: "+added.getName()+":\t"+ added.getValue()+"<BR>"); %> VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ <H2>New cookie</H2> <FORM> <P>Name: <INPUT TYPE='TEXT' NAME='name'></P> <P>Value: <INPUT TYPE='TEXT' NAME='value'></P> <INPUT TYPE='SUBMIT' VALUE='Add new value'> </FORM> </BODY> </HTML> AddToShoppingCart.jsp <%@ page errorPage="errorpage.jsp" %> <jsp:useBean id="cart" scope="session" class="beans.ShoppingCart" /> <html> <head> <title>DVD Catalog</title> </head> <body> <% String id = request.getParameter("id"); if ( id != null ) { String desc = request.getParameter("desc"); Float price = new Float(request.getParameter("price")); cart.addItem(id, desc, price.floatValue(), 1); } %> <a href="ShoppingCart.jsp">Shopping Cart Quantity:</a> <%=cart.getNumOfItems() %> <hr> <center><h3>DVD Catalog</h3></center> <table border="1" width="300" cellspacing="0" cellpadding="2" align="center"> <tr><th>Description</th><th>Price</th></tr> <tr> <form action="AddToShoppingCart.jsp" method="post"> <td>Book</td> <td>$19.95</td> <td><input type="submit" name="Submit" value="Add"></td> <input type="hidden" name="id" value="1"> <input type="hidden" name="desc" value="Book"> <input type="hidden" name="price" value="19.95"> </form> </tr> <tr> <form action="AddToShoppingCart.jsp" method="post"> <td>Toy</td> <td>$19.95</td> <td><input type="submit" name="Submit" value="Add"></td> <input type="hidden" name="id" value="2"> <input type="hidden" name="desc" value="Toy"> <input type="hidden" name="price" value="19.95"> </form> VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____ </tr> </table> </body> </html> ShoppingCart.jsp <%@ page errorPage="errorpage.jsp" %> <%@ page import="java.util.*" %> <jsp:useBean id="cart" scope="session" class="beans.ShoppingCart" /> <html> <head> <title>Shopping Cart Contents</title> </head> <body> <center> <table width="300" border="1" cellspacing="0" cellpadding="2" border="0"> <caption><b>Shopping Cart Contents</b></caption> <tr> <th>Description</th> <th>Price</th> <th>Quantity</th> </tr> <% Enumeration e = cart.getEnumeration(); String[] tmpItem; // Iterate over the cart while (e.hasMoreElements()) { tmpItem = (String[])e.nextElement(); %> <tr> <td><%=tmpItem[1] %></td> <td align="center">$<%=tmpItem[2] %></td> <td align="center"><%=tmpItem[3] %></td> </tr> <% } %> </table> </center> <a href="AddToShoppingCart.jsp">Back to Catalog</a> </body> </html>

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

OUTPUT:

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

VR SIDDHARTHA ENGINEERING COLLEGE

Sheet No____

VR SIDDHARTHA ENGINEERING COLLEGE