String literal "null" submission with Struts

Does anyone know if Struts allows you to submit the 4 character literal "null" as an input to an <html:text> tag? Each time I try to submit this value through a form I actually end up with null instead of "null".

This is a tough thing to search for on Google as well, I've come up empty handed so far.

Thanks guys!

[340 byte] By [den2681a] at [2007-11-26 21:29:16]
# 1
is text a textarea or a textbox? i can test this for you if you tell me which one it is.
mkoryaka at 2007-7-10 3:09:33 > top of Java-index,Java Essentials,Java Programming...
# 2

<html:text> ends up being just a regular <input type="text">, so it's just the single line variety.

I think I may have found the culprit though, there is some goofy function in our code that is -normalizing- a "null" to null. So I imagine if you try it you will get "null" on the other end. Be sure to check the value against null though, because if you just try and System.out.println(); the value null ends up being "null" on the console.

I only even have this problem because apparently some people actually have the last name Null -- unlucky bastards.

den2681a at 2007-7-10 3:09:33 > top of Java-index,Java Essentials,Java Programming...
# 3

Try checking for a null value and if null replace the null value with "null"

String test = null;

if(test==null)

{

test = "\"null\"";

}

ignignokt84a at 2007-7-10 3:09:33 > top of Java-index,Java Essentials,Java Programming...