How to use form input to update code?
===

I have a page where I need to filter certain values provided by an embedded widget  based on user input in a text field.
I can do this by appending certain parameters to the widget code embedded on the page and refresh the page


How do I take the user input , replace the widget code and refresh the page?

this is the code I might need to append to the widget code that already exist on my page.
%22filter%22:%7B%22keyword%22:%22userprovidedvalue%22%7D,

I am using jsp

