Java's Internet store. Filter pick.



  • Let's say I have a table of product in the D.O.D., which contains columns - an attribute of an act: attr1, attr2, attr3. I want to make sure the user can filter a sample of atribut goods.

    Фильтр бар

    Values are val, I'm stored in the OD. These are column values attr. I'm pulling them from the D.O.S. when the user goes on the page.
    Now I have to do the same with the attributes, I mean, I need to decorate the names of the columns. But the question is, how? Besides, the names of the columns in the English database, I need to get a picture in Russian. It's not the best way to cherish the names, because if you add a new column, you'll have to change jsp.
    There's got to be some sort of solution, maybe who's dealing with it or just knows how best to do it, I'll be happy to help. Thank you.



  • If you pull the names of the columns in the grill, for example:

    http://www.roseindia.net/jdbc/jdbc-mysql/ColumnName.shtml

    https://stackoverflow.com/a/19095179/873481

    If you need to display the translation, make it, for example, Map. There'll be a couple of key-angle and Russian column values. And, accordingly, with the required decommissioning value, you will remove the Russian value of the pole from the given angle-close.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2