Home Answers Viewqa JSP-Servlet project development

 
 


S.MAHESHREDDY
project development
1 Answer(s)      5 months and 26 days ago
Posted in : JSP-Servlet

i have one html page called register.html page it will be contain more number of fields and i am enter data stored in access database and i want code for jsp or servlets through access database urgent sir.

View Answers

November 26, 2012 at 6:01 PM


Here is a code that creates a registration form and save the data to Access database.

Follow these steps to set up the connection:

1)Go to the start>>Control Panel>>Administrative Tools>>data sources.

2)Click Add button and select the driver Microsoft Access Driver(*.mdb).

3)After selecting the driver, click finish button.

4)Then give Data Source Name and click ok button.

5)Your DSN will get created.

6) Restart your server and run your jsp code.

1)register.jsp

<html>
<form method="post" action="insert.jsp">
<table>
<tr><td>First Name:</td><td><input type="text" name="fname"></td></tr>
<tr><td>Last Name:</td><td><input type="text" name="lname"></td></tr>
<tr><td>Email:</td><td><input type="text" name="email"></td></tr>
<tr><td>Password:</td><td><input type="password" name="pass"></td></tr>
<tr><td>Confirm Password:</td><td><input type="password" name="cpass"></td></tr>
<tr><td>Date Of Birth</td><td><input type="text" name="dob"></td></tr>
<tr><td>Age:</td><td><input type="text" name="age"></td></tr>
<tr><td>Gender</td><td><input type="text" name="gender"></td></tr>
<tr><td>Address:</td><td><input type="text" name="address"></td></tr>
<tr><td>Country</td><td><input type="text" name="country"></td></tr>
<tr><td>State:</td><td><input type="text" name="state"></td></tr>
<tr><td>City</td><td><input type="text" name="city"></td></tr>
<tr><td>Telephone No:</td><td><input type="text" name="tno"></td></tr>
<tr><td>Mobile:</td><td><input type="text" name="mobile"></td></tr>
<tr><td>Language:</td><td><select name="lang">
<option value="C/C++">C/C++</option>
<option value="C#">C#</option>
<option value="Java">Java</option>
<option value="Perl">Perl</option>
<option value="Python">Python</option>
</select></td></tr>
<tr><td></td><td><input type="submit" value="Submit"></td></tr>
</table>
</form>
</html>

2)insert.jsp:

<%@page import="java.sql.*,java.util.*"%>
<%
String fname=request.getParameter("fname");
String lname=request.getParameter("lname");
String email=request.getParameter("email");
String pass=request.getParameter("pass");
String cpass=request.getParameter("cpass");
String dob=request.getParameter("dob");
int age=Integer.parseInt(request.getParameter("age"));
String gender=request.getParameter("gender");
String address=request.getParameter("address");
String country=request.getParameter("country");
String state=request.getParameter("state");
String city=request.getParameter("city");
int telephone=Integer.parseInt(request.getParameter("tno"));
int mobile=Integer.parseInt(request.getParameter("mobile"));
String lang=request.getParameter("lang");

        try{
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         Connection con = DriverManager.getConnection("jdbc:odbc:access");

           Statement st=con.createStatement();
           int i=st.executeUpdate("insert into student(firstname,lastname,email,pass,confirm_pass,dob,age,gender,address,country,state,city,telephone,mobile,language) values('"+fname+"','"+lname+"','"+email+"','"+pass+"','"+cpass+"','"+dob+"',"+age+",'"+gender+"','"+address+"','"+country+"','"+state+"','"+city+"',"+telephone+","+mobile+",'"+lang+"')");
        out.println("Data is successfully inserted!");
        }
        catch(Exception e){
        System.out.print(e);
        e.printStackTrace();
        }
        %>









Related Pages:
project development
project development  i have one html page called register.html page it will be contain more number of fields and i am enter data stored in access database and i want code for jsp or servlets through access database urgent sir
cs project - Development process
cs project  hello sir i am doing my masters in cs ,i have given a project by professor ,title is gossiping protocol,i have no project developing experience,please help me how to start the project from scratch like how to start
Project Question - Development process
Project Question  hello sir ,i have project in visual basic 6.0 ,i want to convert it in to visual basic.net2008 how i can convert it. plz Help Me its very very urgent
application development project
application development project   enter 10 integers, store it using array then display them from highest to lowest. 2.enter 10 integers, store... -plz answer my question..i hope that u can help us in our project..thank you:D
Java Project - Development process
Java Project  Hello Sir I want Java Project for Time Table of Buses.that helps to search specific Bus Time and also add ,Update,Delete the Bus Routes. Back End MS Access Plz Give Me
Project Location change - Development process
Project Location change  Hi , I have developed mini project . In my... ,ow can i run that project. Now i installed weblogic in tat system also. but still am getting 503 error. Is there any possibility to run my project in LAN
create a login project - Development process
create a login project  How to make an application(project)OF LOGIN APPLICATION USING MYSQL DATA BASE TO REGISTER AND LOGIN IN JSF FRAMEORK.  Hi friend, For solving the problem visit to : http://roseindia.net/jsf
Want Mini project - Development process
Want Mini project  Hi Can u plz send me mini project.I want to learn Dao, DaoImpl, Service,ServiceImpl, DTO, Action class, HibernateDao, HibernateDaoImpl, i.e; I want mini project implementing all concepts like jsp ,struts
Error in Shopping Cart project - Development process
Error in Shopping Cart project  I tried running the shopping cart project given in the below link: http://www.roseindia.net/shoppingcart... when I submit "http://localhost:8080/cart" I received the following error
project description
project description  Hi Sir, i want to ask question how to describe web project in interview. i did work on some project and role was the application development such as (login,register validation etc)and time of project was 3
Project Guidance
Project Guidance  Hello, I have a project in SE at college and me... some advise on how I should approach the development of this app. What... should be used for development. So far (2nd year) in college we studied
deploy stand alone java project in JBoss - Development process
deploy stand alone java project in JBoss  i hv a stand alone java project nad a web project to be run on Jboss. from the web project i am calling the classes in stand alone java project. but i dont know how to deploy the stand
Software Project Management
Software Project Management  Hi, What is Software Project Management? How you can handle the development of software project effectively? Thanks   Hi, The Software Project Management is process of planning, executing
Project Management Importance
software project. A skillful project manager will manage the development of software...Project Management Importance  Hi, Why Project Management is so important in the development of any software system? Thanks   Hello
College Student Admission System Project in Java - Development process
College Student Admission System Project in Java   Front End -JAVA Back End - MS Access Hello Sir, I want College Student Admission Project in Java with Source code, that includes Following Forms 1) Student Admission
Project Management Process
components of a project, whether it is a project of new product development... management requires proper development of an effective project plan, which... project. This process also involves, the development of project schedule and project
Java Error in Bus Time Table Project - Development process
*; import java.sql.*; import java.util.*; class Project{ JFrame f; JPanel...; GridBagConstraints gbc; Project(){ f=new JFrame("Bus TimeTable"); p=new JPanel(); p1
Role of Project Manager
A software project manager plays a key role for the development of any software project in an organisation. The role and responsibilities of a project... and enhance the productivity. The project manager should be responsible for setting
MCA Project Training
, a Delhi based software development company offers the best live MCA project... project training is not only include the designing and development of the project... Project Training in iPhone software Development · MCA Project
PDT - PHP Development Tools
;    PDT Project PHP Development Tools About PDT The PDT project is working towards providing a PHP Development Tools framework for the Eclipse platform. This project will encompass all development components necessary
Project Management Methodologies
projects at any point of the project life cycle. Feature Driven Development (FDD): Feature Driven Development (FDD) as a project management methodology is based... of project plant efficiently. Joint Application Development (JAD): Joint
Java Project Outsourcing, Java Outsourcing Projects, Oursource your Java development projects
Java Project Outsourcing - Outsource Java development projects Java... Java project development services are cost effective and most beneficial... the development and release of the project We following quality
Project Manager Job
to development to final delivery. The project manager would lead teams... Project Manager Job       This Project Manager Job is actually a very high
Submit a Request for a Project to be done
Fill this form to Submit a Request for a Project to be done. Our development team will shortly contact you.   Visit Services section to submit your project details
project
project  i need a project in java backend sql
PROJECT
PROJECT  i want online polling system project codding
project
project  suggest a network security project based on core java with explanation
project
project  sir i want a java major project in railway reservation plz help me and give a project source code with entire validation thank you
What is Software Project Management?
of a software project are equally important software development and quality assurance... in any software project normally software development is referred... to transportation to governance'? To obtain a surface view of the software development
project
project  does hostel management system project contain any dynamic web pages
project
project  sir i want module and source code on my project hospital management system
PROJECT
PROJECT  i want help on making project on mobile banking application..... the application should have SAVING ACCOUNT,CURRENT ACCOUNT,TRANSACTION ETC......... IN APPLICATION
Select your project and right click on the it
, click on "Ok" button Now you get project development... Creating files in JPA project   ...; project, you need to follow the following steps: Select "
Project
Project  How to show Questions randomly so that no two student get the same questions in online examination system project in Java Server Pages my email id is moiza_sayyed@rediffmail.com
project
project  sir i want to a project on railway reservation,sir plz give me the source code   plz give me the source code of railway reservation
iPad development outsourcing
for the same. Once you agree with the project scope, payment, project development... application project. You will save a lot of development cost by outsourcing iPad development project in India to our development team. Our team is always ready
project
project   hi , we r working on one project related to our results. we using java and for back end sqlserver 2005. In dis we are trying to retrieve result from some site and store it in our data base so that we can perform
Project
Project  Hi, Am starting a new project to draw a 2d graph using java swing and opengl,where in the input for X-axis and Y-axis co=ordinates should be accepted from user... As am very new to this am seeking help so pls help
project
project  For my project their is 2 users, one is users and administers.i want code for giving authentication to these users by using one, means same login form and database table ..my back end is mysgl....and am using wamp sever
Software Project Management
Software project management is the process of planning, organising, staffing, monitoring, controlling and leading a software project. An effective software project management requires the combination of knowledge, skills, efforts
Project Management Knowledge Areas
management includes project plan development, project plan execution... development and schedule control. Project Cost Management Every project has some... acquisition and team development. Project Communications Management An effective
Project Human Resource Management
completion of the project. Team Development: Dividing the available human... with the project. Team development Team development involves making different teams... aspects. Team development for a specific project management is a complex
Extreme Project Management
of project is too dynamic. As most of the software development projects...When it comes to project management, a number of methodologies, tools and techniques are used in order to complete a project successfully. Out of theses
project..
project..  Write a program to find the result of N students by accepting 5-subject marks from a Mark class and calculate the total and average mark. Display the result of all students in ascending order of rank from Result class
project...
project...   enter 10 integers, store it using array then display them from highest to lowest. 2.enter 10 integers, store it using array then display them from lowest to highest number to words conversion create a java program
Project
); hrm.close(); String stud_name=(String) vdata.get(1); String project_name=(String) vdata.get(2); String project_type=(String) vdata.get(3); String receipt
Project
); hrm.close(); String stud_name=(String) vdata.get(1); String project_name=(String) vdata.get(2); String project_type=(String) vdata.get(3); String receipt

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.