Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Request Parameter are case sensitive or not ?

 
hasan khan
Ranch Hand
Posts: 223
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I my country.jsp i have the following code


when i call my jsp
http://localhost:8080/test/country.jsp?country=india

it prints india

but
when i call my jsp
http://localhost:8080/test/country.jsp?COUNTRY=india

it prints null

why ?
i believe in both the case it should not print null it should print india


http://localhost:8080/test/country.jsp?INDIA=india
 
hasan khan
Ranch Hand
Posts: 223
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please ignore the last line of the above question
http://localhost:8080/test/country.jsp?INDIA=india
 
Alex Sharkoff
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi hasaN,

Yes, request parameters (and context/session/request attributes; and javax.servlet.ServletContext/javax.servlet.ServletConfig init parameters) are case sensitive.

Hope it helps,


[ December 21, 2004: Message edited by: Alex Sharkoff ]
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!