• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need help with getting parameters from dropdown menu

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
    reply
      Bookmark Topic Watch Topic
    • New Topic