This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
What you need to make sure of is that the resulting HTML is valid. Yours is not. Why is the select element outside the form?

You must also create the HTML that does what you want. This is completely independent of JSP. So if you want the select element to participate in the form submission, it must inside the form and have a name.

And if you want the submitted value of the selected option to be something other than its display text, you must use the value attribute.

That's all just basic HTML concepts. Don;t get confused by the fact that the HTML is being generated by a JSP. In the end, it's just an HTML page like any other that is sent to the browser.
Brooke Maddox
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would also like to thank you for all your help, these forums have taught me 10X more than what my instructor has. So thank you.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!