473,414 Members | 1,626 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Dropdown list related Question

Hi bhavya here, i completed my project, in tht i added some items in to the dropdown list dynamically like from database... nw i need to select a perticular name of item n need to send a message, bt i dono hw to select a perticular item from dropdown list... can anyone guide me... wait for ur reply...

Bhavya.G
Apr 16 '13 #1
7 1429
r035198x
13,262 8TB
What did you use for the drop down? A JCombobox or was it web based?
Apr 16 '13 #2
i did project in struts2, so i used select tag itseems, so tht i can add all the frnds which r present in database can add into dropdown list dynamically...

Bhavya.G
Apr 16 '13 #3
Hi, i ve attached snap shot also... here u can check in drop down list u can see 2 email id's which s prsent in database... whn i send msg to tht selected email id its nt getting select tht email id frm dropdown list... bhavya.docx, here s a snap shot of tht window...

Bhavya.G
Apr 16 '13 #4
r035198x
13,262 8TB
You can get the submitted values at the server side using request.getParameterValues
Apr 17 '13 #5
no... i think u r nt getting my question... i wanna send a msg to selected email id from drop down list... u can see tht edit box beside tht dropdown list na, der i jst type a msg n click on send button, so tht tht selected email id's slno should store in database... so here i jst wanna hide tht email id frm drop down list... i dint get tht code so need ur help....

Bhavya.G...
Apr 17 '13 #6
r035198x
13,262 8TB
You can add that selected value to requestScope or sessionScope.
Then when building the values in the select you can use JSTL c:if to skip the value if it is the same as the passed in value.
Apr 17 '13 #7
already i added tht in session during jdbc itseems... so tht only im iterating over all the items present in database it select the perticular email id's which s related to login id...i hide tht id itseems using tht value which s stored in session...
Apr 17 '13 #8

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

Similar topics

2
by: Tapiwa JONGWE | last post by:
I would like to display 15 items (lines) in the dropdown list, but by default the list displays only 11 lines. How can I have all the 15 items displayed in my dropdown list ? Thanks for your...
1
by: Joseph Barron | last post by:
Here is a SIMPLE problem that I'm trying to solve. It works in Netscape 6.2, but IE6 gives ""No such interface supported." Below are page1.htm and page2.htm . In page1.htm, there are two...
1
by: Ian Davies | last post by:
Hello In a php file I have a drop down list with index numbers in whos default value is feed into an sql query that filters records from my database and displays them in an html table. Trouble...
4
by: anonymous | last post by:
Hi Folks, I have a form with two Dropdown list boxes, which get loaded with data from Database. DropDownList1 gets data from Table1 and DropDownList2 gets data from Table2 Table1 has a...
1
by: Larry Rekow | last post by:
Using: MS SQL, VS.Net 2003, VB.Net Each night our SQL db imports two text file reports into two tables: Table 1 has info on various shipments (shipment number, date, destination, etc.) Table 2...
2
by: cpptutor2000 | last post by:
Could some PHP guru please help me? I am creating a dynamic dropdown list using a code snippet(Section A) as below: Section A: $sql_query=mysql_query("SELECT DISTINCT semester, year from...
4
by: youvrajasnsm | last post by:
Hi All, >I am using datagrid control in asp.net with C#. >I have two dropdown list in datagrid e.g. one dropdown have Classname and another have Studentname. >now I want to show all the...
8
by: tagg3rx | last post by:
Hi All, I have created a panel as a place holder on an input interface and I want to be able to dynamicaly fill it with drop down lists, check boxes etc. So below I'll show you the two main pieces...
1
by: fezzabett | last post by:
i have one question. i have two different dropdown list. one to select members,and another one to select department. so i want function when i click on one button for example i named it 'add another...
4
by: Paul | last post by:
Hi all, I have a page that has a form on it which has a dropdown list on it. It connect to an sql database and populate the list. What I would like to do is make the list editable so that if the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.