Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Request Parameter are case sensitive or not ?

 
hasan khan
Ranch Hand
Posts: 222
Eclipse IDE Firefox Browser Java
  • 0
  • 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: 222
Eclipse IDE Firefox Browser Java
  • 0
  • 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
  • 0
  • 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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic