You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Hessing Ingo <I....@laudert.de> on 2001/12/17 11:57:28 UTC
Problems w/ case sensitive property names
Hi!
I have two properties in a bean:
private int pathLevel;
private int pathlevel;
As you can see the first one has got a capital "L" and the second is all
lower case.
In a JSP page I wrote the following:
<jsp:useBean id="formHandler" class="de.laudert.beans.Browser"
scope="session"/>
<jsp:setProperty name="formHandler" property="pathLevel"/>
<jsp:setProperty name="formHandler" property="pathlevel"/>
pathLevel = <%=formHandler.getPathLevel()%>
pathlevel = <%=formHandler.getPathlevel()%>
If I request the page via
http://172.30.250.219:8082/browser.jsp?pathLevel=1&pathlevel=2
the property "pathLevel" (with capital "L") is _not_ set to 1. But
"pathlevel" (lowercase) is successfully set to 2.
Seems that the capital "L" is the problem here. Anybody?
bestWISHES
Ingo
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>