I'm trying to design a tag which queries data from a cache, restructures the data and writes a html table from data using jstl tags.
So the .tag file looks like:
The device has two kinds of data, metadata where it tells what kind of data I'll be receiving, which I'll be storing in a local database and the actual data which is received from the device whose format is as expected from the metadata. So the above cache query is a metadata cache query, not the actual data coming from the device.
Is this approach acceptable? Is it right to query the device cache using scriptlet code?
If not, what would be the best solution to these kind of problems? Is it possible to associate both a .tag file and
java file to this tag so that I can separate the java logic to the java class?