473,473 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

i want to show drop down list value to the next page in jsp.

2 New Member
have two pages 1)index.jsp and 2)first.jsp.i have drop down list in index.jsp page i want if i choose any value from drop down list it should show the selected value to the next page that is first.jsp.


coding of drop down list goes as....

Expand|Select|Wrap|Line Numbers
  1. <h4>Plant: <select name="plants" onchange="location.href=f1.plants.options[selectedIndex].value">
  2.  
  3. <option>Select</option>
  4. <option value="First.jsp"><b>A</option></b>
  5. <option value="First.jsp"><b>B</option></b>
  6. <option value="First.jsp"><b>C</option></b>
  7. </select>
  8.  

please somebody help me...i got stuck.
thank you
Sep 13 '12 #1
0 1389

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

Similar topics

3
by: Stephen Adam | last post by:
Hi there, I'm sure i'm missing something really simple here, all i want to do is get the value of the selected item in a list box. Even after much fiddling about last night I still could not get...
1
by: PB | last post by:
I have an aspx with 4 Drop-Down list boxes on it. All the list values are hard-coded in the aspx. I want a client-side JavaScript function to select a value in each of those DDLs. I can...
3
by: Mike Collins | last post by:
I'm not feeling too smart right now, but I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. Can someone show...
2
by: fariba123 | last post by:
i have designed an employee information site. there is an option to generate pay slip. how can i show the employee related data based on the drop down list. i have found code example for...
0
by: Rnt6872 | last post by:
Hello All, I have a problem with a dropdown list. I select a value from the dropdownlist, and when i update my page the value gets reset back to the default item, and doesn't post to a results...
1
by: Valli | last post by:
HI, I have a drop down list in my aspx page. When the list1 value changes, a procedure GetList2Values ( onchange="GetList2Values ()" ) will get executed. Since the list2 contains a large number...
3
by: cherryst152 | last post by:
I am trying to grab the values of a couple drop down lists. Now i know what i have isn't right, but i feel close. <select name="os1"> <option value="1">1 <option value="2">2 <option value="3">3...
0
by: Mike | last post by:
Hello, Is there a way to configure a drop down list of bookmarks so that, when selected, the browser links to that bookmark without reloading the page? Thanks, Mike
15
by: ajos | last post by:
Hello all, Im making a dependent drop down for my application for filtering purpose. I have populated the drop down from the database and retrieved in the html. <tr> <td valign="top"...
4
by: phpmagesh | last post by:
Hi I am using php and smarty, what i have to do is i have a drop down box with dynamic name, id and values. like <select name="id" id="id" onchange="sample()" > {foreach key=key_data...
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
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,...
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
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.