By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,654 Members | 1,519 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,654 IT Pros & Developers. It's quick & easy.

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

P: 2
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
Share this question for a faster answer!
Share on Google+

Post your reply

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