Hi,

Could anyone help me to pass user name and password to another jsp page for testing from database without showing it in URL that what user has entered?

Instead of using method="get" in the opening form tag use method="post" . This the basic of HTML you should already know, if not have look at w3schools for more examples.
One more thing, you should be sending the username and password for validation to servlet not another page from which you attempt to connect with database

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.