wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Request Parameter are case sensitive or not ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Request Parameter are case sensitive or not ?" Watch "Request Parameter are case sensitive or not ?" New topic
Author

Request Parameter are case sensitive or not ?

hasan khan
Ranch Hand

Joined: Aug 04, 2003
Posts: 222

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

Joined: Aug 04, 2003
Posts: 222

please ignore the last line of the above question
http://localhost:8080/test/country.jsp?INDIA=india
Alex Sharkoff
Ranch Hand

Joined: Apr 11, 2004
Posts: 209
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 ]

Alex (SCJP 1.4, SCBCD 1.3, SCWCD 1.4, SCJD 1.4)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Request Parameter are case sensitive or not ?
 
Similar Threads
doubt in forwarding
Life cycle of Jsp
IIS and TOMCAT
Servlets on Tomcat 4 (Standalone)
where to map the domain name in Tomcat?