By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,378 Members | 3,020 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,378 IT Pros & Developers. It's quick & easy.

how to get value in javascript for using in code java

P: 8
hi
how to get value in javascript for using in code java in (jsp)
thanks :)
Apr 22 '15 #1
Share this Question
Share on Google+
4 Replies


Dormilich
Expert Mod 5K+
P: 8,639
please explain.
Apr 22 '15 #2

P: 8
i want to get value into javascript for using in code java
exemple :
Expand|Select|Wrap|Line Numbers
  1. <input type="texte" id="value" />
  2. <script>
  3. var a=document.getElementById("value").value();
  4. </script>
  5. <% Resulest rs=st.executeQuery("select * from employees where employe_id="+a);%>
but i want to get value (a) for using into query
Apr 22 '15 #3

Dormilich
Expert Mod 5K+
P: 8,639
you can’t do it this way.

you’ll have to send it via HTTP (form submit or AJAX) over for JSP to use it.
Apr 22 '15 #4

P: 8
give me example plzz
Apr 22 '15 #5

Post your reply

Sign in to post your reply or Sign up for a free account.