This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes encrypting data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "encrypting data" Watch "encrypting data" New topic
Author

encrypting data

jyotsana dang
Ranch Hand

Joined: Sep 26, 2003
Posts: 135
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.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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
jyotsana dang
Ranch Hand

Joined: Sep 26, 2003
Posts: 135
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
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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.
 
wood burning stoves
 
subject: encrypting data