This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
It need to iterate through an object containing business information. For each business, I need to print out information about the business and also a submit button for "View Details" (similar to rent.com). I'm using nested:iterate, nested:form and nested:submit.
My problem is, when a use clicks on the "View Details" button, how will I be able to know which record was selected. Most importantly, I need to know the businessID of the business the user clicked.
Here's my code:
example of my business object:
SearchResultsDTO results1 = new SearchResultsDTO(); results1.setBusinessID("1708"); results1.setBusinessName("CybexWare Corp."); results1.setCity("New York"); results1.setState("NY"); results1.setZipCode("84940"); results1.setServiceDetails("lkel ejlj eiel eoi eiu e ieirne euhahiu i rjehio eriherhreihiurh urhiru");