Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hide the variable name and values in url

 
S Kalai
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In jsp the resultant values are display from the bean.
<logic:iterate id="customer" name="custList">
<td> <bean:write name="customer" property="customerId" /></td>
<td> <html:link action="editCustomer.do?do=editCustomer"
paramName="customer" paramProperty="customerId"
paramId="customerId">
<bean:write name="customer" property="customerName" />
</html:link> </td>
</logic: iterate>
In that resultant page the customerId and names are displayed.While cilcking the customername the customer details are edited. In that time in webbrowser url shows with Id.
http://localhost:8080/CRM_WebApp/editCustomer.do?do=editCustomer&customerId=5
How can i set the variables invisible in url?

Thanks in Advance.
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
change your request into a post request in which the parameters are not shown in the header but in the body of the request.

I understand that you're using Struts. You could put your link in a form element and define the form method as post.

The following link may help you

form submission using struts link tag
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic