java - How can I send html/javascript values to sql and return it back to the same page in jsp? -


i started out html page. then, renamed file .jsp extension, using jsp accomplish particular task.

which is: wish take value page on form, send sql used in clause, send data set same page. now, employ ajax, instead of submitting form. appreciate advice, step-by-step procedure, i'm bewildered @ least couple of items. 1) can write jsp code in same page? 2) can or should write sql inside jsp code? 3) should have page set jsp?

i suppose i'm looking "hello world" explanation, i've worked non-java based languages in past.

thank you.

for quick , dirty, should @ using jstl sql tags. they're pretty easy use, actually, , eliminate of jdbc cruft if embedded java.

this page decent little example covers of fundamentals, sql jstl.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -