This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
i have a search page in jsp where i have given an html link on the names dispplayed: <a href="my_page.jsp?user_login=#user_login#"> name</a> user_login is the code of the employee. I wanted to know how do we encrypt this data so that the user_login value is not displayed on the address bar of the next jsp file.
if you do a search on google you can find a lot of encryption scripts out there. RSA page: http://oregonstate.edu/dept/honors/makmur/ but if you do not want to show the data and you are submiting the form you should use "post" instead of "get" and the information will not show up in the query string in the first place. Eric
Joined: Sep 26, 2003
hi.. in my search part i have this search jsp page which has a form with name and lastname as the input fields to be searched from. The next jsp page - search_result returns the corresponding names. <table align="center" border=1 cellspacing=3> <tr bordercolor="#000000"> <td bgcolor="#FFFFCC"><a href ="my_page.jsp?user_login=09090"><%=fname+" "+lname %></a></td> <td bgcolor="#FFFFCC"><%=Desg%></td> </tr> </table> i wanted to know when i give a hyperlink to the name the user_login that i have given shouldnt be displayed on the url of the address bar. is it right to give it like i have given above. Thanks
Joined: Nov 08, 2001
The only way it will not diplay in the url is if you use frames, you submit a form to the page that uses the information or you manulally have to make them enter it.