I'd like to be able to check via JSTL fmt library the time of the day, (say if it is 2 pm or not) and attach html tags based on output of the test. For some reason I'm not getting any errors or the date out when I do the following:
Could someone tell me please what I'm missing from the above?...I do import the fmt library.
So I did clean up the jstl code and now I do get the time only. I'm doing this to test if it is 2pm. I'd like to be able to do this using jstl notation, although writing a scriplet will probably be faster. I'd like to have a test that would do something as below, but don't know if this is at all possible via jstl.
I actually found my old java code for getting all the info I need (hour,ampm), so I think I'm going with a scriptlet and plain java code - takes much less time.