I need to check if a variable is specified somewhere else in the code upon receipt.
Due to inclusion in the JSP, I sometimes get a variable defined in two places, and then java returns an error. Using jsp: include doesn't work either.
I am looking for something in the form #ifndeffor c, but not in the preprocessor (since it is java) to avoid duplicating the local variable.
I cannot use ==nullor isnull(), because sometimes the variable will not be defined at all, and not just uninitialized
source
share