Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JSP-Servlet JSP, Servlet creating user account
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


senthil
JSP, Servlet creating user account
1 Answer(s)      6 years and 7 months ago
Posted in : JSP-Servlet


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


Advertisement
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:
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
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
Advertisements
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
MySQL Creating account and changing password
"admin" for this user account . Creating a new user Account ... 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
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
How to Create a Different User Account in Windows 8?
in creating a user account, here you are. In this windows 8 tutorial, we will discuss How to create a different user account in Windows 8? Once you install... for the new user account (standard), and then click to next button. However
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
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: http://roseindia.net/jsp/bank.shtml Thanks
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
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
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
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
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
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
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
jsp code for storing login and logout time to an account
jsp code for storing login and logout time to an account  I need simple jsp code for extracting and storing login and logout time in a database table...://www.roseindia.net/jsp/loginstatus.shtml
How to Create User Account in Windows 8 with Windows live ID
id is added for creating the user account.   7. Once you e-mail id... to create an user account in Windows 9 using your windows live ID. 1. To start... to finish button below. 8. You have now successfully created your user account
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
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
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
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 - 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
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
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
Account Management Statements
;    In MySQL user account information?s are stored... 5.0.2 include the statement CREATE USER. It is used to create a new MySQL account... for each account in user table of mysql database. But if account is already
creating dropdown lists in jsp
creating dropdown lists in jsp  i want to create two dropdown list which are dependent that is the first box choice have to evaluate the second boxs options
Delete Account
Delete Account  How to delete account
JSP User-Agent
JSP User-Agent          JSP User-Agent is used to display... illustrate an example from 'JSP User-Agent'. To understand and elaborate the example we
validate bank account number
validate bank account number  how to validate bank account number in jsp
 

 

 

DMCA.com