Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Pass arguments 'secretly' :P

Posted on 2004-10-29
5
Medium Priority
?
185 Views
Last Modified: 2010-04-01
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]
0
Comment
Question by:DrWarezz
[X]
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
  • 3
  • 2
5 Comments
 
LVL 13

Accepted Solution

by:
petmagdy earned 2000 total points
ID: 12443985
in ur form use:

method = "post", instead of "get"
0
 
LVL 9

Author Comment

by:DrWarezz
ID: 12443997
That's all? :D
Thanks!
[r.D]
0
 
LVL 13

Expert Comment

by:petmagdy
ID: 12444007
yes and in ur serlvet u have to transfer the code from doGet() to doPost()
0
 
LVL 9

Author Comment

by:DrWarezz
ID: 12444022
Thanks :-)
0
 
LVL 13

Expert Comment

by:petmagdy
ID: 12444025
welcome :)
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

A walk-through example of how to obtain and apply new DID phone numbers to your cloud PBX enabled users that are configured in Office 365. Whether you have 1, 10 or 100+ users in your tenant, it's quite easy to get them phone-enabled and making/rece…
Here in this article, you will get a step by step guidance on how to restore an Exchange database to a recovery database. Get a brief on Recovery Database and how it can be used to restore Exchange database in this section!
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

636 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