Hello, i have a JSP page that present items from a category stored in XML. Im trying to build a way that when Sortby price and Sort by provence buttons clicked change the items respectively. Also my webpage has Purchase java class that takes item's name, price(double) and image address and Manager java class that has some usefull methods. My problem is until now when either by price or by provence buttons clicked, table is empty.
I haven't any idea. You have a bunch of XPath code which seems to be doing something. Then you've got some unrelated code which uses a Vector<Purchase> but never creates any Purchase objects. I don't know if you should change that code so that it does something, or whether you should concentrate on changing the XPath code. In any case you would have to understand where the data was coming from in order to do anything with the code.
Nope. Wasn't that clear? How could anybody figure out what to change based just on seeing that code? You would have to understand where it was getting its data from and how the data was organized.
Am I correct in guessing that somebody else wrote this code, and you have been given it and told to do something with it? If that's the case then you should go back to whoever gave it to you and ask them to help you with that.