473,322 Members | 1,401 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,322 software developers and data experts.

retrieve value from dropdownlist and show it to another page in jsp

I have two pages one is index.jsp and another is first.jsp. I have drop down list in index.jsp page.I want that if i choose any value from dropdown list that value should go to the next page that is first.jsp. the code i am using is mention below.

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>Aligarh BP</option></b>
  5. <option value="First.jsp">Aligarhbp</option>
  6. <option value="First.jsp">Aligarhbp</option>
  7.  
  8.         </select>
  9.  
Sep 14 '12 #1
0 1437

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

Similar topics

2
by: Mike P | last post by:
When you are passing a value to another page, and will need access to it throughout the page and on any postbacks, what is the best way to store it? By making it a variable accessible to the whole...
17
by: Rabbit | last post by:
Hi, On my 1st page, i have a function which gets a new ID value and need to transfer to another immediately. which I want to get in 2nd page using Request.form("txtID"), but doesn't work, the...
3
by: staeri | last post by:
I have a page containing a dropdownlist. After clicking a hyperlink another page is opened. How can I retrieve the selected text in the dropdownlist from the new page without using a session or...
2
by: rajrajnew | last post by:
Hi, I developed web usercontrol, which populates all countries data. I want to retrieve value from it and place it on a label with out using button click event. I mean that it should act like...
1
by: cheergurl | last post by:
i have two text box inside parent page (one for user name, another one for department name) and one button that will open child page. i will choose department name at child page.The value will pass...
11
by: manjunath1985 | last post by:
Hi, I am really having problem in checkbox.... i have a php page which displays the username retrieved from the database i want to create a checkbox for each username and pass the selected...
2
by: sarsat | last post by:
Hello, Am very new to php.. I don't know how to pass a value from one page to another page in php.. can any one help me...
2
by: Prasanta | last post by:
Hello, I have an ASP site. Now we need to define some setting on config file. on basis of that value asp page control will switch visible true or false. everything is working if I hard coded the...
3
by: nse111 | last post by:
I use PHP sessions to pass a value from one page to another. In my 1st page I pass a value called 'id' to my 2nd page using a hyperlink. explained: <a href="abc.php?id=<?php...
1
by: itsmenarwal | last post by:
HI everyone I have a textbox i have disabled it with a fix value(like in online papers if you solved first question and move to second question first question get disabled now u cant make editing...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.