hi,
ive got some forms that take in info off the user from text boxes. i have this info passed to beans ( in the form of strings) to conformation pages. these conformation pages perform checks on the data to determine the right procedure to take with the information.
when one or more of the text boxes have a null value in them, tomcat spits up a null pointer exception error.
i have code that checks to see if the info taken from the beans is null but it looks like these dont even get run.
is there a way around this because the users need to be informed of the error in plain english, as in redirected back to the input screen with the error shown in red.
is there a way that i can detect null values within the bean and have my own procedures implemented accordingly?
cheers for the help
ive got some forms that take in info off the user from text boxes. i have this info passed to beans ( in the form of strings) to conformation pages. these conformation pages perform checks on the data to determine the right procedure to take with the information.
when one or more of the text boxes have a null value in them, tomcat spits up a null pointer exception error.
i have code that checks to see if the info taken from the beans is null but it looks like these dont even get run.
is there a way around this because the users need to be informed of the error in plain english, as in redirected back to the input screen with the error shown in red.
is there a way that i can detect null values within the bean and have my own procedures implemented accordingly?
cheers for the help