NEED HELP, Login Screen

Posted on 2003-03-09
Medium Priority
Last Modified: 2010-04-01
Hey all. Apparently hy hosting service doesn surport asp so i need to use jsp to create a log in page consisting of a login name and password! i would like the source code, to let people login, check that there details match a database and then continue to a signedin page, but if no mactch go to a different page. Needs to be in jsp files.
Question by:cldm
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 8098483
Yes, so I think you should rent a coder... This is not a expert-exchange, this is a software development. Ask specific questions only
LVL 11

Accepted Solution

fargo earned 80 total points
ID: 8098502
hello cldm,

U can do the following:

in the login.jsp

<form name="login_form" action="target.jsp" method="post">
<input type="text" name="user_name">Login
<input type="password" name="user_pwd"> Password
<input type="submit">

And in target.jsp

take the parameters

String user = request.getParameter("user_name");
String pwd = request.getParameter("user_pwd");

then use ur queries to check against database

select user_name, user_pwd from user_table where user_name='"+user+"';

get the user pwd and check against the pwd u got from request...

do the required things
login failed

Well, this is the very simple way and is as per ur points "20". If you need any detailed code..increase the points.

Moreover, above code doesn't check anything for null values and so..do the needful.

Happy working

LVL 11

Expert Comment

ID: 8114674
hello cldm,

Why "C"...you didn't ask anything more???

well...this is not the way to get more answers to ur queries. Best of luck

happy working

Author Comment

ID: 8121501
cause u make me trying to give u more points when i have none, for information im trying to get!

Expert Comment

ID: 8234451
Grade changed to A.

cldm, the grade you give does not affect the number of question points. Please visit the helpdesk to learn about the question/answer process.

EE Moderator

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
The top devops trends for 2017 are focused on improved deployment frequency, decreased lead time for change and decreased MTTR.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses
Course of the Month13 days, 4 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question