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.

[858 byte] By [ntca] at [2007-10-2 20:57:50]
# 1

> How to passing the textbox value within the jsp page

> without using javascript or reload the page.

No, jsp executes on the remoter server, the text box is on a client machine, you need to send information to the server over the network, http does this with a request, which will reload the page.....................

angrycata at 2007-7-13 23:42:33 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
what you need is ajax, search the net for ajax javascript tutorials
OniShiroa at 2007-7-13 23:42:33 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
is that need to install any lib or package?Where can i find installtion note and tutorial note? I m new for ajax...thank..
ntca at 2007-7-13 23:42:33 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...