so... request.getParameter("thisString") should receive null from post data and it does as you can see by the button value. so, why does it even enter the if statement? any ideas?
thanks!
newb
05-03-2006, 06:51 AM
graviton
<input type="hidden" name="thisString" id="thisString" value="<%=thisString_sent%>">
if thisString_sent is null, this will place the string "null" at this place.
why don't you just let the jsp print out the value of thisString_sent to debug?
05-03-2006, 09:25 AM
smcneill
I have run into that same problem you are having using the Tomcat ServletEngine (3 or 4 times this week infact). I don't know if this is a bug in tomcat's newest release or what. The problem as I have experienced it is that for some reason, using the != null operand in a jsp tag does not work the way it should. My work around was to use if == null { do nothing... } else { do what I need to do. That seems to work just fine.