I am confused in a scenario, where I am having 2 alternatives(ma y be more but I am able to think of only two), which one to choose from these two (or may be any other better approach)?
Secnario is as follows:
I have to fetch data from table database according to some filters, and then display it on the screen.
Now one way is to take the filters in comma-separated values(or may be any special symbol separated values), and split them to String[], and set that object to session.
Second way is make an info class according to the data fields to be displayed, and take an store an array object of info type in session.
Thanks in advance for any help.
Secnario is as follows:
I have to fetch data from table database according to some filters, and then display it on the screen.
Now one way is to take the filters in comma-separated values(or may be any special symbol separated values), and split them to String[], and set that object to session.
Second way is make an info class according to the data fields to be displayed, and take an store an array object of info type in session.
Thanks in advance for any help.
Comment