jsp/servlet login program

Ads
 

jsp/servlet login program

<%@ page language="Java" import="java.sql.*" %>  
<HTML> 
<HEAD><TITLE>DataBase Search</TITLE></HEAD>  
<BODY>
<jsp:useBean id="db" scope="request" class="logbean.LoginBean" >
  <jsp:setProperty name="db" property="userName" value="<%=request.getParameter("userName")%>"/>
  <jsp:setProperty name="db" property="password" value="<%=request.getParameter("password")%>"/>
 </jsp:useBean>
<jsp:forward page="hello">
  <jsp:param name="username" value="<%=db.getUserName()%>" />
  <jsp:param name="password" value="<%=db.getPassword()%>" />
</jsp:forward> 
</body>
</html>

When I run the program, I get an error: The requested resource (/hello) is not available. There is no mention of this in the tutorial. Am I missing something?

View Answers

April 7, 2012 at 12:13 PM

Hi, Here hello servlet is missing, please find the same kind of tutorial here

Ads









Related Tutorials/Questions & Answers:
jsp/servlet login program
jsp/servlet login program  <%@ page language="Java" import...;/TITLE></HEAD> <BODY> <jsp:useBean id="db" scope="request" class="logbean.LoginBean" > <jsp:setProperty name="db" property="userName" value
login authentication in jsp and servlet
to make login authentication in jsp and servlet? Thanks   Hi, I to make login authentication in jsp and servlet you have to write code for database... it with complete code: Login Authentication using Bean and Servlet In JSP JSP
Advertisements
jsp program - JSP-Servlet
jsp program  1.write a servlet program that finds out the given... an application in jsp to redirect the request to any other page.  Hi Friend...,please go through the following link: http://www.roseindia.net/jsp/jsp
Can Login on Fedora, cannot on Windows- JSP/Servlet for login
Can Login on Fedora, cannot on Windows- JSP/Servlet for login  I am using JSP and Servlet to perform login. When I host the website and test it works...; Please visit the following link: JSP Login Authentication
sample jsp-servlet-service-db program
sample jsp-servlet-service-db program  <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http
jsp program for bill generation - JSP-Servlet
jsp program for bill generation  hi, i just want to know how i write the jsp program for generation of bill for a gas connectivity systm  Hi Friend, Please provide some information like structure of bill. Thanks
basic login and registration web page using jsp and servlet without using bean .....
basic login and registration web page using jsp and servlet without using bean .....  Hello Folks please i m totally beginner so guys please help me with very simple solution..... thnx
jsp and servlet
jsp and servlet  I want to create a login form,which have many fields,and have a connectivity with thwe oracle database,and login form will have... the data and delete the data,using jsp and servlet
login module program
login module program  hello friends i want to develop the web service using .net pls send the login ejb module .net program to my mail id
login module program
login module program  hello friends i want to develop the web service using .net pls send the login ejb module .net program to my mail id
jsp and servlet
login from login page and if we submit it shud be validated in a servlet using...jsp and servlet  hello friends just want to create a jsp page... links: http://www.roseindia.net/jsp/loginbean.shtml http://www.roseindia.net
jsp servlet
jsp servlet  i have to create one application in which at one page login id will be entered and after entering it will go to second page where first... page. if same login id is enterd again then all data should be populated by itself
JSP AND SERVLET
JSP AND SERVLET  I want to create a login form with user name...;<input type="submit" value="Login"></td></tr> <tr><...(); ResultSet rs=st.executeQuery("select * from login where username
jsp servlet coding issue
jsp servlet coding issue  hi, i am making a library system project... and login method in User class. public class User{ private Integer userId... String password; when the user login for first time he has to fill details
java - JSP-Servlet
java  why is required to write both jsp and servlet in a application of java
jsp servlet hosting
jsp servlet hosting  Hi, What is jsp servlet hosting? Thanks   In case of jsp servlet hosting, hosting companies are providing hosting environment where client can host Java based web application on the server
Calculator - JSP-Servlet
Calculator  Dear Deepak Sir, Calculator program is avilable in Jsp... calculator program in jsp function checkValue(){ var msg...; } Simple calculator program in jsp /> >
JSP/Servlet to read and update Excel
JSP/Servlet to read and update Excel  Hi Team, My requirement is based upon my input(name) value via one jsp, the program(jsp/servlet) should fetch all the column values which is related to my input(name) from Excel(.xls
Project - JSP-Servlet
Project  Can you send me the whole project on jsp or servlet so that i can refer it to create my own : the topic is Advertisement Management System Atleast tell me how many modules does it include
java servlets - JSP-Servlet
java servlets  how to get the parameter value of input type file using java servlets  Hi, You can use request.getParameter(). In Jsp, --- --- IN servlet, String fileName=request.getParameter('fl'); If you
java - JSP-Servlet
java  what is the difference between jsp and servlet?   Hi firend, Main difference between Jsp and Servlet Jsp is better for view web pages, while servlet is good for request processing. Jsp has also all
jsp servlet question
jsp servlet question  I have an HTML form which has a couple of radio buttons for example (gender: male/female) and some check boxes with select lists. I have created a servlet to connect to access database and process the form
Populating child dropdownlists in JSP/Servlet
Populating child dropdownlists in JSP/Servlet  Populating child dropdownlists in JSP/Servlet
code - JSP-Servlet
code  hi sir my question is i have created a html ang jsp code for login process.my problem is every time it is accepting a new id and password... Friend, Try the following code: 1)login.html: Login
send HTML Email with jsp and servlet
send HTML Email with jsp and servlet  Can You please show me how to send html Email using JSP and Servlet thank you
authentication - JSP-Servlet
authentication  I want to restrict the user not to go Login form when he enters into home page of site.please give me any idea about this. thanks in advance Ramanjaneyulu B +91-9962925266
How to upload files to server using JSP/Servlet?
How to upload files to server using JSP/Servlet?  How to upload files to server using JSP/Servlet
Session expire and back button in jsp and servlet .
Session expire and back button in jsp and servlet .  Hii Sir, I have to make a login and logout page with sessions .Now i have to invalidate the session after a certain interval of time and after clicking logout
compiliation - JSP-Servlet
compiliation  Hi Sir How to compile a Servlet program form edit plus   Hi Friend, Please visit the following links: http://www.roseindia.net/servlets/introductiontoconfigrationservlet.shtml http
q - JSP-Servlet
q  when a program run then the data is first retrieve from database and at runtime it save in .js file from that we show data in html control like... how to avoid this? this should be done at runtime as user run the program
Servlets - JSP-Servlet
Servlets  Hello Sir, can you give me an example of a serve let program which connects to Microsoft sql server and retrieves data from it and display it on the browser. just provide me connection string

Ads