| Author |
Strange behaviour of jsp:include
|
Sangeetha Rao
Ranch Hand
Joined: Aug 01, 2005
Posts: 33
|
|
Two of the pages in my application are called "login.jsp" and "confirm.jsp". confirm.jsp has this line in it. only if init-caps is given to the file name of login.jsp on Windows, it works fine. When I give the correct filename of login.jsp (without init-caps), I get this exception:
But on Linux, it works fine only if the correct case is given. Why is this strange behaviour on Windows?
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56152
|
|
|
Windows, unlike sane operating systems, is case-insensitive.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Sangeetha Rao
Ranch Hand
Joined: Aug 01, 2005
Posts: 33
|
|
|
I understand that Windows is case-insensitive. It means that you can give either upper case or lower case in a file name and it is sure to fetch the same file. But in my case, when I give lower case (the actual file name is with lower case) it doesnt work but if I give upper case it works!
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56152
|
|
It looks as if a discrepency was introduced when the class file was created from the JSP's servlet. Be sure to always use the correct case when referencing files even if using Windows. I'd remove all work files and make sure that the first time that you "hit" the JSP, you use the correct casing.
|
 |
 |
|
|
subject: Strange behaviour of jsp:include
|
|
|