I’m playing with Stripes and I wonder if it is possible to send Javascript generated data to ActionBean. To be more specific, when I click with my mouse on certain element on page, I want to send ID of that element back to ActionBean after clicking on stripes:link. Providing I already have that ID saved in a JS variable id, how do I do that?
I’m playing with Stripes and I wonder if it is possible to send Javascript
Share
Are you using parameterised link?
Which would most probably generate:
http://mysite.com/...?id=some_default_value, which you would later use javascript to changesome_default_valueto theidyou want?Note: Suggestion unverified. I’ve no dev tool installed on this old lappie.
Edit: On second thought, why not just write some javascript to append
"?id=" + id;to the link’s url address?