I have a jsp page that contains a few html controls.
When clicking on the button, I want to take the values from
those controls and to send them to a jar file.
I have the code of calling the jar - it is java - code, but
Can I invoke that java code from the server side ?
Assuming that the server-side consists of a Java web app, then it can execute any code you want.
Can I make a postback thru the html button click event and to catch it when the forms posts, and to invoke there the java code ? Something without ajax ?
In any case, I want to add some code here to be explained well.
var dataLimit = document.getElementById("txtDateLimit").value;
var countLimit = document.getElementById("txtCountLimit").value;
<input type="button" onclick="UpdateData()" value="Save">
What , in your opinion is the best way to achieve ? same solution you gave me ?
In the page body, I right java code that anyways works, and check if there are params in the request.
I so, it updates them...
That would work, although it's considered bad style to keep any Java code in JSPs. You should use a servlet that executes the logic, and which then dispatches to the JSP.