You can use if condition of jstl core taglib to compare your day name with that of your table column name. There's another way which will work pretty well. Take day name from the user and pass it on to Servlet, compare it with your table column name and then get the result to display using your JSP. That's it :)
Are we talking a database table column name, or an html table column name?
I can see a use case for a timetable/calendar which highlights the current day - which would be a view layer operation
Steps
- Work out what day it is (Calendar / Date classes maybe?)
How do you know what the column names are to compare to ?