Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello Friends,

I have a web aplication with JSP pages and servlets.

I have a jsp page with a form with a password input, but when I clicked in the form button I send
the form elements in javascript function that open a new window calling a servlet.

the javascript function that open a new window, send the parameters to the servlet, but this parameters can be view in the navigation bar including the password.

I need to hide this parameters (password) , How I can do this, opening my new window In javascript?

Please Anyone can help me??

Thanks in advance
Att:
Leonardo Ayala R.
Posted
Updated 30-Jun-13 19:30pm
v2
Comments
Sergey Alexandrovich Kryukov 1-Jul-13 1:36am    
Again, wrong approach. If your parameter is a password, hiding it won't make is secure. You should pass cryptographic hash function, not a password...
—SA
Arindam Mondal from India 1-Jul-13 10:02am    
Can you please provide your java-script code? It will help us to provide exact solution.
[no name] 7-Jul-13 7:14am    
very bad approach specially when you send the password too.
I think you need to send the data via Ajax by POST Method, then save the data in session at server, and simply open a page that reads that session data from the server :D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900