I am working on a play 2.0 framework application in java. I want to display the default profile pic depending on their gender and age, like man or woman or boy or girl pics as a default pic (like facebook etc.).
How would I go about generating a different URL for the image, based on the attributes of the user?
in your User model, have a method
I am assuming you have
genderandageattributes in your User model class. Make sure you put in the correctThen, in your view, you can just say