Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Request.getParameter shows null in servlet.

 
sarojni agrwal
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

In the above coding ,I fetched data in dropdownlist from databse with jstl tag.and want to fetch data in browser when select the data from dropdownlist but it gives me null why?




This is my dropservlet coding here I used request.getparameter ,so that I can get what user selected.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65338
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the generated HTML with View Source at the browser. Is it valid?
 
sarojni agrwal
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes my html code is valid while , I click view source at browser, do not look at some empty value inside option tags, because I gave there, well this is my html code.







 
sarojni agrwal
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am so sorry , yes my html code is not valid, I gave option values there by coding, and thanku very much , my problem has been solved. thanks again...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic