aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Alternative to ending @requestParam on url in display:table. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Alternative to ending @requestParam on url in display:table." Watch "Alternative to ending @requestParam on url in display:table." New topic
Author

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

Lucky J Verma
Ranch Hand

Joined: Apr 11, 2007
Posts: 278


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 .
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
 
subject: Alternative to ending @requestParam on url in display:table.