Pass arguments 'secretly' :P

Hello... Yup, this is my 6th post (in the JSP section) in the past 2 days, I think  lol  ;-)

Anyways, Problem 6:

I've created an HTML document, which requests a username and password. It then submits them to a class file (Login), with the username and password.
The class then looks up the Username in a database (using JDBC), and checks that the username exists, and if the password is correct, etc..

Anyway, the problem is, when it loads the class file, it physically passes the arguments in the address bar, ie;
http://localhost/Login?username=something&password=somethingElse

How can I pass an argument without it appearing in the address bar?

Thanks! :D
[r.D]
LVL 9
DrWarezzAsked:
Who is Participating?
 
petmagdyConnect With a Mentor Commented:
in ur form use:

method = "post", instead of "get"
0
 
DrWarezzAuthor Commented:
That's all? :D
Thanks!
[r.D]
0
 
petmagdyCommented:
yes and in ur serlvet u have to transfer the code from doGet() to doPost()
0
 
DrWarezzAuthor Commented:
Thanks :-)
0
 
petmagdyCommented:
welcome :)
0
All Courses

From novice to tech pro — start learning today.