I am new to jsp. I need to know how to execute certain code on a button click(submit).
my form has a text box and a submit button. Onclicking it, it has to execute a SQL query and then forward the control to another jsp page.
Where to write the query??
Thanks in advance.
the easiest solution is to just use scriptlets on the page the form is forwarded to. If you want to use jsp correctly, you should not use scriptlets but instead move this code to java classes.
Thanks sillyboy !!
`.model small .stack 100 .data kernel DB 10 DUP(1) input DB 1, 2, 3, 4, 5, 6, 7 output DB 0, 0, 0, 0, 0, 0, 0 .code MAIN PROC ...
<!doctype html> <html lang="en-US"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Empathy</title> <link href="template.css" rel="stylesheet" type="text/css"> </head> <body> <div class="container"> <header> <a href=""> <h4 class="logo"> <img src="page-1_2.png" ...
So I have website listing characters from a multi person RP I take part in
the site uses bootstrap as well as a mysql database. I have a working search ...