JSP, Servlet creating user account

JSP, Servlet creating user account

How to create user account in Java using JSP and Servlet?

View Answers

April 18, 2008 at 2:58 PM

hi

i think this is ans 4ur ques try like this.
i am sending u sample code
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">;
<html>
<head>
<title>retrieve</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<%@ include file="dbconnection1.jsp"%>
<body>
<%
try
{
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select * from regis");
%>

<table border="1">
<tr>
<td>seller</td>
<td>username</td>
<td>password</td>
<td>name</td>
<td>companyname</td>
<td>city</td>
<td>fax</td>
<td>alert</td>
</tr>
<tr>
<% while(rs.next())
{%>

<td> <%out.println(rs.getString("seller"));%></td>
<td>&nbsp;<%out.println(rs.getString("username"));%></td>
<td>&nbsp;<%out.println(rs.getString("password"));%></td>
<td>&nbsp;<%out.println(rs.getString("name"));%></td>
<td>&nbsp;<%out.println(rs.getString("coname"));%></td>
<td>&nbsp;<%out.println(rs.getString("city"));%></td>
<td>&nbsp;<%out.println(rs.getString("fax"));%></td>
<td>&nbsp;<% if(rs.getString("alert")!= null)
{%>
<input type="checkbox" value="alert" checked>
<%}else
{%><input type="checkbox" value="alert" unchecked><%}%></td>
</tr>
<%
}%>
</table>
<%
}


catch(Exception e)
{
out.println(e);
}
%>

</body>
</html>

hope it'll help u byeeeeeee









Related Tutorials/Questions & Answers:
Creating a service - JSP-Servlet
Creating a service  I created a database for username and password nd verify them for that I created a loginJSP page, using servlet I am getting username and password and perform validation and display the result back in jsp
user profile - JSP-Servlet
user profile  how to create a user profile for each user in the database and enable the user to modify it using jsp
Advertisements
Creating methods in servlets - JSP-Servlet
Creating methods in servlets  I created servlet and jsp file.I Instantiated 3 objects and Defined 2 methods in my servlet, first method should write... --%> JSP Page
creating a jar file - JSP-Servlet
creating a jar file  Can you give me detail answer 1. i am having.... where to place the html or jsp files 2. how to create a jar file and how can i create it for a single servlet.class file how can i run my servlet file
creating a feedback form - JSP-Servlet
creating a feedback form  hi, first of all thank you very much... i am refining this problem as follows: i am creating a feedback form... and submitting the form. so questions are coming from the jsp page and also
Probem while creating PDF through JSP-Servlet - JSP-Servlet
Probem while creating PDF through JSP-Servlet  Hi, I have a web-app... java app or the batch file through JSP or servlet the PDFCreator is called but I... link: http://www.roseindia.net/jsp/HowtoMakeaPdfandinsertingadata.shtml Hope
Using a user defined non-packaged servlet class in jsp. - JSP-Servlet
Using a user defined non-packaged servlet class in jsp.  i want know that how to use a user defined java servlet function's, variables and methods of a user defined java servlet in jsp.if possible plz try to explain with a simple
Account openning System - JSP-Servlet
Account openning System  hi i am a student &i wana to make a project thats related to Account openning System and House Financing System for a bank.plz tell me how many business processes included in it (both System
Admin and User Login JSP - JSP-Servlet
Admin and User Login JSP  Respected Sir, I am R.Ragavendran.. i need a JSP based program immediately.. In the home page, there must be a login... be present along with the Emp_id and name.. But when user has individually logged
Need Help in creating online quiz application using JSP - JSP-Servlet
Need Help in creating online quiz application using JSP  Hi, i am creating online Quiz application using JSP and MySQl ,Apache 6 in Netbeans IDE. i... ---------------------------------------------------------------------------------------------------- JSP Page
Remove attribute in user defined session - JSP-Servlet
Remove attribute in user defined session  Hi, How we can set remove attribute for user defined session. I am appreciating if you are sending solution as soon as possible? Thanks, Sanat Kumar
how to make authentication for each user using jsp/servlet?
how to make authentication for each user using jsp/servlet?  i have 10 jsp pages and 5 users.I use 10 buttons for open the page.Admin assign some jsp pages to each user.If admin assign page1 and page2 for user1 then make other
problem in creating web application using servelet, jsp, jdbc and xml - JSP-Servlet
problem in creating web application using servelet, jsp, jdbc and xml  Using Servlet, JSP, JDBC and XML create a web application for a courrier... the technologies JSP,Servlet and JDBC etc... Thanks
How to create file and save it into user defined path using jsp/servlet?
How to create file and save it into user defined path using jsp/servlet?  Hi.. Onclick event I have created one file.When file will create it should asked where to save file(like browse option
i want code of signing off from a account how its done in jsp and servlet by using either cookies or session
i want code of signing off from a account how its done in jsp and servlet by using either cookies or session   sig
JSP-Servlet - JSP-Servlet
JSP-Servlet   how to pass the value or parameter from jsp page to servlet and view the passed value
JSP-Servlet - JSP-Servlet
JSP-Servlet   how to pass the value or parameter from jsp page to servlet and view the passed value
JSP-Servlet - JSP-Servlet
JSP-Servlet   how to pass the value or parameter from jsp page to servlet and view the passed value
MySQL Creating account and changing password
"admin" for this user account . Creating a new user Account ADS... MySQL Creating account and changing password       This MySQL provide the new creating account
i want code of signing off from a account how its done in jsp and servlet by using either cookies or session
i want code of signing off from a account how its done in jsp and servlet by using either cookies or session   sig   Hi Friend, Please visit the following link:ADS_TO_REPLACE_1 http://roseindia.net/jsp/bank.shtml
Servlet question of saving song from database to user's hard disk. - JSP-Servlet
Servlet question of saving song from database to user's hard disk.  I..." the servlet should save the song to that location on the user's hard disk.How can I do... files.There is also a "Download" button in the form. When I click on that button a servlet
jsp/servlet - JSP-Servlet
jsp/servlet  How to create and save the excel file on given location using jsp/servlet?  hi Geetanjali, Read for more information, http://www.roseindia.net/jsp/poi/excelPOI.shtml Thanks
JSP-Servlet - JSP-Servlet
JSP-Servlet   how to pass the value or parameter from jsp page to servlet and view the passed value.   Hi Friend, Please visit the following links: http://www.roseindia.net/tutorial/servlet/passParameters.html
a jsp code for creating a text file
a jsp code for creating a text file  Hello,i need jsp code for creating a new text file for each user, when they login in to the website for creating a new data file. So i need a jsp code for following options. when user login
JSP-Servlet
JSP-Servlet  Hi have created a JSP page and I need to print it when the user clicks on the print button. I have put a print button on the JSP page. Can somebody plz help me out with the Servlet page coding
jsp/servlet - JSP-Servlet
jsp/servlet  Hello ! How can we call a servlet on a link on html page like a href="servletname"> Call Servlet Is it possible?   Hi friend, I am sending simple application using servlet. This is form
jsp - JSP-Servlet
JSP, Servlet creating user account  How to create user account in Java using JSP and Servlet?  hi i think this is ans 4ur ques try like this.i am sending u sample code<%@ page contentType="text/html; charset
jsp and servlet
jsp and servlet  what is the difference between jsp and servlet ? what is the advantages and disadvantages of jsp and servlet
servlet and jsp
servlet and jsp  how to connect an jsp and an servlet without connecting to database
JSP - JSP-Servlet
JSP & Servlet Example Code  Need example of JSP & Servlet
JSP - Update displayed content & session variables when user clicks on a button - JSP-Servlet
JSP - Update displayed content & session variables when user clicks on a button  Hi, I'm trying to setup a form in which the user can click on certain buttons (say an img of a "+" sign). When the user does that, I would like
servlet and jsp - JSP-Servlet
servlet and jsp  can any one give me jsp-servlet related project-its urgent- 1-chat application 2-bug tracking system 3-online shopping 4-online...://www.roseindia.net/jsp/bank.shtml Thanks
jsp and servlet
/jsp/user-registration-form-using-jsp.shtml...jsp and servlet  hello friends just want to create a jsp page... login from login page and if we submit it shud be validated in a servlet using
Servlet - JSP-Servlet
Servlet and Java Code  Example and source code in Servlet and JSP
JSP - Update displayed content & session variables when user clicks on a button - JSP-Servlet
JSP - Update displayed content & session variables when user clicks on a button  Hi, I'm trying to setup a form in which the user can click on certain buttons (say an img of a "+" sign). When the user does that, I would like
servlet/jsp - JSP-Servlet
servlet/jsp  hi, get me the source code to upload all file formats in servlet/jsp plaese help me as soon as possible its urgent!!! by saravanan.k  Hi friend, Code to help in solving the problem
servlet and jsp
servlet and jsp  how can i get a form question from a database... question in the form? And what is the best way to bind a user id with the form... with servlets and jspīs   Have a look at the following links: http
Servlet - JSP - JSP-Servlet
Servlet - JSP  i used arraylist in servlet as shown ArrayList total = new ArrayList (); ... total.add(k[i]); session.setAttribute("efg",total); when I code this like in my jsp <%ArrayList<Integer> data= new
Validating User in JSP
Validating User in JSP       Example program for validating user in JSP In this example we have to develop a JSP application which will validate user via servlet and JSP page. We are using tomcat
JSP & Servlet - JSP-Servlet
JSP & Servlet  In the process of login validation. i'm entering... and resp wil be processed, so the user has to enter the username again and try... help me with coding ? i'm just a beginner with JSP and sServlets
JSP & Servlet - JSP-Servlet
JSP & Servlet  Its an IBM Question In the process of login... response.sendRedirect() a new req and resp wil be processed, so the user has to enter... is wrong ? can any one help me with coding ? i'm just a beginner with JSP
servlet and jsp - JSP-Servlet
servlet and jsp  Hello folks, I am very new JDBC. I am doing a project on java messaging service on the part of the project we are using JDBC. In my...   write in the jsp form action="path of servlet" and wirite
JSP - JSP-Servlet
JSP  Any please mail me the source code to login in an account after authentication with database and lie inside my account as long as i... alert("Please enter User Name."); theForm.userid.focus
servlet and jsp - JSP-Servlet
servlet and jsp  Hi friend, please show one sample program, how to connect jsp and servlet using backend a ms-access.  Hi friend,<%@ page language="java" import="java.sql.*,java.util.*,java.text.*"
creating instance of table in jsp
creating instance of table in jsp  i face senario look kie as follows; 1)i write a code in jsp to retrieve the data from database. 2)the out put file is obviously a jsp page and shows the output in table manner. 3) now i want
Servlet - JSP-Servlet
: //signup.html New User Account Enter Your Name* :  ... Account Enter Your Name* :   Enter User Name* :   @amanmail.com... and confirm password paremeters, and in the servlet called SignUp.java i
java (servlet) - JSP-Servlet
java (servlet)  how can i disable back button in brower while using servlet or JSP
Servlet-JSP Mapping - JSP-Servlet
Servlet-JSP Mapping  Dear Sir, My Query were: How I use the issueData() in Jsp which define in Servlet_Two.java. If any mistake in my code please...\.wlnotdelete\extract\myserver_ProjDemo_ProjDemo\jsp_servlet\__issue.java' failed
Servlet-JSP Mapping - JSP-Servlet
Servlet-JSP Mapping  Dear Sir, My Query were: How I use the issueData() in Jsp which define in Servlet_Two.java. If any mistake in my code please...\.wlnotdelete\extract\myserver_ProjDemo_ProjDemo\jsp_servlet\__issue.java' failed
Servlet Question - JSP-Servlet
Servlet Question  I want to call one servlet when the browser window is closed by User

Ads