Select dynamic query button Submit and input

Asked

Viewed 212 times

1

How to make a dynamic select in JSTL by a JSP? For example, fill CNPJ in a input id="cnpj" and when I click on the Submit button it takes that value from input, plays in SQL QUERY as parameter and executes on the same page by C:out the CNPJ and other table fields.

SS

1 answer

0

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

Click here to see this approach using PHP. But with JSP is the same principle.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.