issue accessing Date object from within a scriptlet embedded in JSP
True to bad style, I'm writing a piece of JSP right now where there's a bit of actual code scriptlet embedded with <% ... %> tags now.
In the jsp above that scriptlet I'm working with 2 objects of java.util.Date, called inDate and outDate. When I'm trying to access the different objects er values or whatever within them, I'm using standard inDate.minutes and etc. to attempt to do tests on them. Is there something special that I need to know about accessing this kind of object from within an embedded scriptlet? I'm getting a server log error of
An error occurred at line: 169 in the jsp file: /reports.jsp
inDate.hours cannot be resolved or is not a field
When I access that section now; debugging code above the scriptlet has proven that inDate & outDate are getting their proper values in the JSP code, though.
Here's a little bit of the code; I'm pretty sure this issue is just something that I don't understand about either the scope of these objects (declared at the top of the same JSP page) or how much access an embedded scriptlet has to variables declared in JSP:
|All times are GMT +5.5. The time now is 14:25.|