Solved

Pass arguments 'secretly' :P

Posted on 2004-10-29
182 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
Question by:DrWarezz
    5 Comments
     
    LVL 13

    Accepted Solution

    by:
    in ur form use:

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

    Author Comment

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

    Expert Comment

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

    Author Comment

    by:DrWarezz
    Thanks :-)
    0
     
    LVL 13

    Expert Comment

    by:petmagdy
    welcome :)
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Suggested Solutions

    Title # Comments Views Activity
    Apache server configuration 7 67
    reflections, dynamic class loading 3 61
    nested if has else if 13 83
    java operators 3 54
    Know what services you can and cannot, should and should not combine on your server.
    SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    875 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

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now