Select option in jsp example

By: maza Date: 24.06.2017

I know that this is an old question, but as I was googling it was the first link in a results.

So here is the jsp solution:. The only reason your code might fail is when there is no item selected, then the selectedIndex returns -1 and the code breaks.

By posting your answer, you agree to the privacy policy and terms of service.

Delayed Bag Fee Rebate : Delta Air Lines

Stack Overflow Questions Explore Jobs Documentation beta Tags Users. Sign up or log in to customize your list.

Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us. Log In Sign Up.

select option in jsp example

Join the Stack Overflow Community. Stack Overflow is a community of 7. Join them; it only takes a minute: How to get the selected value from drop down list in jsp?

html - selecting an option in a dropdown list using request parameters - Stack Overflow

Pearl 46 1 3 7. So here is the jsp solution: Direct value should work just fine: How can we achieve this without javascript and only in jsp? Sign up or log in StackExchange.

Multiple Selection Dropdownlist in JSP-Servlet and Hibernate

Sign up using Facebook. Sign up using Email and Password.

Pagination in Servlet and JSP – iByteCode Technologies

Post as a guest Name. Developers Who Use Spaces Make More Money Than Those Who Use Tabs. Stack Overflow works best with JavaScript enabled. MathOverflow Mathematics Cross Validated stats Theoretical Computer Science Physics Chemistry Biology Computer Science Philosophy more 3. Meta Stack Exchange Stack Apps Area 51 Stack Overflow Talent.

inserted by FC2 system