I am working on a project that runs a java back-end and has a web page UI.Basically, the java system runs in on the server and keeps a log of rules that are created in the web page. What I need it to do is take inputs from the text fields on the web page and call a function to pass them to the java object to create a new rule. I also need to be able to call a function to return an array of the rule objects I have created so I can build a table of them on the web page.
I have the UI built as a JSP page and the back-end java classes and functions are all built but I am lost as to how to connect the two.
This is my first attempt at creating a system like this and I have never written anything with Java EE or JSP before.
What I was thinking I could do would be to call a java function when I click the "submit" button to add a new rule and pass the field values to it. I had the same feeling for when I click a button to display the current rules, calling a java function to get the array of objects back and build it into a table.
Does anyone have any insight onto this?
Thanks!