Any ideas on how to make this work?
I was thinking of something like:
<form action="nextPage.jsp" method="post "> <input type="button" value="button" onClick="calledFunction();"> <input type="hidden" name="varname" value="calledFunction();" /> </form>
and then I would call in the nextpage.jsp:
But it doesn't work, the output I get is the function name and not the returned value.
Could you help me?