How To pass the value within the page using jsp?
How to passing the textbox value within the jsp page without using javascript or reload the page.
I have a scenario like this:
I have a textbox named as "accno" which allow user to key in the accno. After key in the accno, this accno value will used to do a query from database using jstl.
here is part of my code
<input name="accno" type="text" onChange="checkLC()"/>
<sql:query var="results" dataSource="${db}">
select accno,name from account where accno = '<%=value get from accno textbox%>'
</sql:query>
<c:out value="${result.rows[0].name}"/>
note that onChange() is the javascript when user key in accno then automatically go to check database then only show out the name. So how can i get the '<%=value get from accno textbox%>' from accno textbox.

