Beauty or meaning?

Should art be judged by its beauty or by its meaning?

How do you judge art?