Nobody has a clue?
Maybe let me explain it in a different way on the use-case:
I've a GET webscript that displays a table with 10 documents (name, title, description, originator) to the user. Now the user is able to select from a dropdown (near the table) a different number of documents he wants to see, let's say 50 for example. If he has selected the new value he submits the formular.
Now, I want to receive the value to query the database with it (compare above to the snippet "function execute(jsonString)").
It all works fine. I receive the value in my POST webscript, I'm able to query the db and I'm able to provide the new results as JSON in the POST webscript (resultObject["searchResults"]; above).
But now: How do I get the result back to the GET webscript where the presentation is already implemented? I don't think the solution can be to duplicate the myshare.get.html.ftl and rename it to myshare.post.html.ftl so that I have to maintain the presentation logic always twice?
Am I wrong with my approach? What is an approach to solve such a request?