Select dynamic query button submit and input

1

How to do a dynamic select in JSTL by a JSP? For example, I fill CNPJ in a input id="cnpj" and when I click the submit button it takes this value from input , plays SQL in the QUERY as a parameter and executes on the same page, returning% CN_C_% and the other fields in the table. / p>

    
asked by anonymous 25.08.2015 / 21:07

1 answer

0

You can use JQuery to create an event when the user presses the BUSCAR button and the callback function for the event you make an ajax request to search the records in the database and return them in format JSON.

Click here to see this approach using PHP . But with JSP it's the same principle.

    
05.05.2016 / 16:23