A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
JSP
Author
How to Get Valueof SelectField
vivek wab
Greenhorn
Joined: Dec 04, 2006
Posts: 2
posted
Jan 03, 2007 21:58:00
0
Hi All,
can please tell me how to get value of selectfield without submitting page in jsp?
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56204
13
I like...
posted
Jan 03, 2007 22:08:00
0
Get it where? With what?
Please click on the "Asking Smart Questions" link below.
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
vivek wab
Greenhorn
Joined: Dec 04, 2006
Posts: 2
posted
Jan 04, 2007 02:14:00
0
i want value of SelectField without submitting the page by using jsp.
BuccaneerAnirban Bhattacharjee
Greenhorn
Joined: Nov 23, 2006
Posts: 9
posted
Jan 04, 2007 02:25:00
0
document.forms[1].selectedCustomerCode.options[document.forms[1].selectedCustomerCode.selectedIndex].value
Where selectedCustomerCode is the name used in <select> tag
Regards-
Anirban [
SCJP
, SCWCD]
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
I like...
posted
Jan 04, 2007 03:47:00
0
"In JSP", you can't get it without submitting the page.
Your
JSP
code resides up on the server.
You can work with the selected value on the client with Javascript using the the technique mentioned by vivek.
What are you trying to do with the value of the select list?
Java API
J2EE API
Servlet Spec
JSP Spec
How to ask a question...
Simple Servlet Examples
jsonf
I agree. Here's the link:
http://aspose.com/file-tools
subject: How to Get Valueof SelectField
Similar Threads
connection
jdbc
how to get the compute ip
This weeks book giveaway
connection
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter