• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hide the variable name and values in url

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 893
Tomcat Server Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Happily living in the valley of the dried frogs with a few tiny ads.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic