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



Home Answers Viewqa JSP-Servlet Full Form of JSP
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


sreenivasa
Full Form of JSP
1 Answer(s)      6 years and 7 months ago
Posted in : JSP-Servlet


What is the full form of JSP?


Advertisement
View Answers

April 29, 2008 at 7:55 PM


Hi friend,

<%@ page language ="java" import="java.sql.*" %>
<html>
<body>
<form name="f1" method="post">
<table border="1" bgcolor="pink">
<tr>
<td>User Name</td><td><input type="text" name="username" ></td>
</tr>
<td>Password</td>
<td><input type="password" name="password"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="submit" value="LogIn"></td>
</tr>
</table>
<%
Connection con = null;
String url = "jdbc:mysql://localhost:3306/";;
String db = "register";
String driver = "com.mysql.jdbc.Driver";
String user=request.getParameter("username");
String pass=request.getParameter("password");

try{
Class.forName(driver);
con = DriverManager.getConnection(url+db,"root","root");
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("Select username,password from userlogin");
while(rs.next()){
String username=rs.getString(1);
String password=rs.getString(2);
if(user.equals(username) && pass.equals(password)){
%>
<jsp:forward page="/LoginSuccess.jsp" />
<%}
else
out.println("Login Failed,Please try Againe");
%>
<%}
}
catch(Exception e){
System.out.println(e);
}
%>
</form>
</body>
</html>



----------------------------

read for more information,

http://www.roseindia.net/jsp/



Related Tutorials/Questions & Answers:
DOJO full form
DOJO full form  what is the full form of dojo
GIGO Full Form
GIGO Full Form  What is Full form of GIGO?   Garbage In, Garbage Out is a Full Form of GIGO in regards simple principles followed by computers
Advertisements
full form - XML
full form  what is the full form of org and jdom. eg: private org.jdom.Namespace nxi=null; what does the above statement mean...i.e each word...://www.roseindia.net/jsp/jdo-mparsing-xml.shtml http://www.roseindia.net/xml/reading
jsp form
jsp form  hi sir, one got one got in jsp form after entering the data into the form the data is not saving in the database i will send you code of two forms if dnt understand my problem
jsp form
jsp form  hai... GoodEvening I have one doubt on jsp.please wil u clarify it. how to move one jsp form to another jsp form with out using forward...)form1.jsp: <html> <form method="post" action="form2.jsp"> <table>
jsp form
jsp form  hi i have one excuted jsp form.and in that the data should be dispaly on another jsp form.please help me thanks in advance   Hi Friend, Try this: 1)form1.jsp: <html> <form method="post" action
How can I get the full URL with the attached parameters? - JSP-Servlet
How can I get the full URL with the attached parameters?  Hi, I'm trying to figure out how to get the current url and use it in my jsp page. I tried using request..getRequestURI(), but that only gives me the jsp page without
Search page form in jsp
Search page form in jsp  search form in jsp   Please go through the following links: http://www.roseindia.net/jsp/user-search.shtml http://www.roseindia.net/servlets/search.shtml
JSP code for registration form
JSP code for registration form  Haiiii can u please tell me how to encrypt password field in registration form and to compare both password and confirm password fields using jsp
search form in jsp
search form in jsp  search page in jsp   Please go through the following links: http://www.roseindia.net/jsp/user-search.shtml http://www.roseindia.net/servlets/search.shtml
displaying output on web page immediately whent the jsp buffer size is full. And how to set jsp buffer size in bytes
displaying output on web page immediately whent the jsp buffer size is full. And how to set jsp buffer size in bytes  Here is my requirement, I have to display output on the browser after jsp buffer is full. And I have to set
disable the form - JSP-Servlet
Ajax. after response is coming to the jsp page,particular form button... Multiple form are created in Jsp. Servlet is used to insert the data. Ajax is used... wrote jsp page in that 8 forms are there.all forms are same but the input values
login form - JSP-Servlet
login form  Q no.1:- Creat a login form in servlets?  Hi Friend, Try the following code: import java.io.*; import javax.servlet....(""); } } For more information,visit the following link: http://www.roseindia.net/jsp
convert this html form to jsp
convert this html form to jsp  <html> <head> <script...;/tr> <form name="VillageDetailsForm" action="AddVillage.jsp" method... Village Registration --> </body></html>   JSP page
html form - JSP-Servlet
html form  how to retrieve database value in dropdown list box placed in html form  Hi friend, Visit for more information. http://www.roseindia.net/jsp/ Thanks
creation of a form - JSP-Servlet
creation of a form  how to create a question paper using JSP code  Hi Friend, We have taken radiobuttons in our application, you can... visit the following link: http://www.roseindia.net/jsp/online-quiz
full coding
full coding  class IdentifyMyParts { public static int x=7; public int y=3;} IdentifyMyParts a = new IdentifyMyParts(); IdentifyMyParts b = new IdentifyMyParts(); a.y = 5; b.y = 6; a.x = 1; b.x = 2; System.out.println("a.y
multipart/form-data - JSP-Servlet
multipart/form-data  When we are uploading a file we are using the encoded type of form of type multipart/form-data. When we are using... with the example available in http://www.roseindia.net/jsp/file_upload/Sinle
automatic updation of a form - JSP-Servlet
automatic updation of a form   Sir, I need the code for if we fill the details in one page(form) that details should be updated automatically in another table like page.Please provide the code for this problem in JSP or java
How to validate a form - JSP-Servlet
How to validate a form   Dear Sir, I have a one jsp ,in that i have a 2 forms ///One form1 as follows Id Subject Status... submit a form without any Id values in a text field i have to get an aleert message
creating a feedback form - JSP-Servlet
and submitting the form. so questions are coming from the jsp page and also... i am refining this problem as follows: i am creating a feedback form of a college. this feedback form will ask some question. now depending upon those
login form validation - JSP-Servlet
login form validation  hi, how to validate the login form that contains user name and password using post method . the validation should not allow user to login in the address bar thanks regards, anand
Get Method of the Form In JSP
Get Method of the Form In JSP     ... of the form in JSP. The HTTP get method sends data to the server. In your JSP...; <head><title>Using Get Method in JSP Form.</title></head>
JSP:HTML Form in-place Editing - JSP-Servlet
JSP:HTML Form in-place Editing  I have an HTML form (form #1) which...). Now my purpose is to re-populate the same customer form (form #1) based... customer(s)'s data, they will double click which will trigger another (form #2
image upload with jsp from form
image upload with jsp from form  hi i used the code specified in your following post http://www.roseindia.net/answers/viewqa/JSP-Servlet/9749-image...) org.apache.jsp.upload_jsp._jspService(upload_jsp.java:85
JSP:HTML Form in-place Editing - JSP-Servlet
JSP:HTML Form in-place Editing  Hi, I want to thank the people... developer's needs. This is a follow up to the HTML Form in-place editing. The code... an excellent way of editing a form. I just have a few adjustments if any of you could
Post Method of the Form In JSP
Post Method of the Form In JSP   ... of the post method of the form in JSP. The HTTP post method sends data.... In this section, you will see that the following JSP program creates a form
JSP Ajax Form
Ajax Form Example This example explains you how to develop a form that populates dynamically from the database though Ajax call. When user selects employee id from the combo box then the corresponding employee details are populated
passing values form javascript - JSP-Interview Questions
passing values form javascript  please i want to pass values from javascript function to jsp code how can i do
Get form value in same page - JSP-Servlet
Get form value in same page  Hello friends, Can we get a form field value in the same to be processed in java coding... friend, For solving the problem visit to : http://roseindia.net/jsp/user
what is wrong with my JSP codes for updating a form?
what is wrong with my JSP codes for updating a form?  Hi experts...;form action="Update.jsp" method ="post" name="update"> <...; <h5>Member Update Form </h5> <input type = "hidden
 

 

 

DMCA.com