473,586 Members | 2,566 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dropdown list related Question

5 New Member
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 1433
r035198x
13,262 MVP
What did you use for the drop down? A JCombobox or was it web based?
Apr 16 '13 #2
Bhavya123
5 New Member
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
Bhavya123
5 New Member
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 MVP
You can get the submitted values at the server side using request.getPara meterValues
Apr 17 '13 #5
Bhavya123
5 New Member
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 MVP
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
Bhavya123
5 New Member
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
2154
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 help.
1
8273
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 dropdown lists. If you change the selection of the left one (e.g. choose parentoption2), it should open up page2.htm in a popup window.
1
10172
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 is this happens as soon as the php is run so bringing up the same records filtered from the default index. Also when I select a new index no from the...
4
1786
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 parent child relationship with Table2 ( has a foreign key to Table1)
1
1829
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 has dates and shipping events for the various shipping numbers. (only 3 columns for date, shipment number and shipping event) I've creates an aspx...
2
1622
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 schoolproject_pics ORDER BY year DESC"); echo "<select name=\"semester\" onchange=\"GoTo()\">"; echo "<option value=\"$semester\">-Semester...
4
1442
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 studentname in second dropdown related to their class selected in first dropdown. >plz help me in above. >Remember i am using both dropdown in a...
8
2039
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 of this effort - the function that creates the dropdown list in question and the function that fires when the submit button is clicked. I've stepped...
1
1550
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 option' button', so it will duplicate that two dropdown list below the two main dropdown list.when i want to remove it,so it will remove the the...
4
2717
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 data returned doesnt contain what I want, I can type in the data I require which will then be updated to the database when the form is posted. ...
0
7839
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8202
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6614
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5390
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1449
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.