• 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

Alternative to ending @requestParam on url in display:table.

 
Ranch Hand
Posts: 278
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Hi all
i have this issue i have been researching on for long and can not figure out what to do.

<display:table> - is used to display table of list of some Accont Objects.One column is rendered by a decorator and is a clickable link made usng < ah ref> tags.
Once clicked , its makes GET requuest and sends an id(specific to that object in row) as @RequestParam in its URL which is captures in Controller .

Now all i want to do is hide that @RequestParam from URL .
How can i do using hidden variables and POST data ,hiding id from user-visibility.

One alternative which is big change and doesnt seem a good idea was, send the list and send some encrypted id as RequestParam
and use it again in controller .
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, it actually isn't a Spring solution. This is about how do you send the id as a hidden field. Well it is an HTML question. So, with that I am going to send this to the HTML forum.

In the end when you post a <form> in html the form values come over either as a bound object, if you bind a domain object, or just as hidden request params. Then you can use either your domain object or @RequestParam in your controller method, that is the only part that is Spring related to your question.

Moving this to html to show how you can add <form>s to your table.

Mark
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic