For debugging purposes, do something like
The value of the error message is "<%= meser %>"
View source on the generated HTML. Is the error message being printed into that? Is it maybe enclosed in tags so it wouldn't be printed to the page?
Personally I prefer the JSTL approach with the c:out tag.
>For debugging purposes, do something like
>The value of the error message is "<%= meser %>"
I didn't say put this into an if statement, I said put it on the page for debugging purposes.
Print that value on the page so you see its value regardless of whether it is null or not. Also you will see if it prints anything between the quotes.
I am questioning your base assumption that the value of the attribute msg_error has a non-null, non-empty value.
This will prove what the value is.
It could be that the value of meser is empty string - ie "", which currently would be indistinguishable from null.
When debugging you constantly have to question your base assumptions. So what is the actual value of this attribute? Why is it this value? Where does it get set?
Good luck,
evnafets