• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help with getting parameters from dropdown menu

 
Uma chukka
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello I am the beginner in developing JSP pages. Can anyone help me how to get parameters from a drop down menu. I have gone through some forums. they are suggesting to use jstl. I have applied jstl and code looks like this

I have to get parameters so getting them here


Can anyone help me with this?
Thanks in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65520
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The suggestion to use JSTL was to remove any Java code from your page. Java code has no place in a modern JSP. That is a technique that has been obsolete for 13 years. 13 years!

You should also not be submitting a form to a JSP. That's also something that is a poor and outdated practice. Your form should submit to a servlet where the parameters will be available from the request instance.

I recommend newcomers to JSP read the following articles:
  • The Secret Life of JSPs
  • The Front Man

  • The first will make sure you understand what JSP is, and how it works. The latter will outline the proper structure for Java web apps.
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!