It is so clear from your question that you have to make one jsp page named index.jsp and put form into it.
Put textboxes and buttons you need on login page and insert the path of servlet onto the action attribute of form tag.
When you click on submit button in form tag then it will go to servlet and do your coding there by making connection with database.
Punit Jain wrote:i don't know what you mean by hardcoded.
but in our college(when i got assignments) we generally refer hardcoded mean, everything should be coded by me, no api's, no plugins should be used.
Well that should be named "Handcoded".
Joined: Aug 20, 2011
yes it should be..
but we called hardcoded, perhaps because everything is coded manually so it becomes hard to do, as compared to do by using api's and plugins.
but i m not sure why it's called hardcoded.
the hardcoded is probably asking you to put your password in the verification code. meaning you can only change the password inside your code. you don't have to save the password on a database or any other medium.
hardcode means, the username and password will be coded in controller itself. While executing the program , when user enters username and password then verification will not be done by retriving the values from database . Instead the checking/matching will be done with hardcode values.
dhuha al khoiri
Joined: Apr 17, 2012
this is my code,correct me if i am wrong,so i made index.jsp code,and dologin.jsp code,and i combine it like that,is that true?? thanks...