I'm making a small application and I have a few classes that have nothing in common (Product, Country, Customer etc) and my goal is to have a jsp file that can display in an html table the object (or list of object it's given) because I currently have a jsp file for every class (products.jsp, country.jsp etc).
I've been thinking about this the whole day and I can't figure how to do it.
Any suggestion ?
edit: trying to be a bit more clear and specific: I have a "target" argument that contains the type of data that the user want to visualize ("product", "country" etc). The servlet will then load in a variable a list of Products/countries etc and send it to the jsp. I want that jsp file to display whatever he just received in a table. The question is how can I do that ? Currently my jsp fileS are doing it "manually" using the getters of each type of object, how can I make that generic ?