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.
Hi, I am having trouble deciding how to display a property populated from Hibernate (via setAttribute()) on the jsp. On the jsp, I have a Struts <html:select> tag. If a value is retrieved from the (DB2) database and sent to the jsp's select which does not match any of the <html ption> elements (drop down box), the first option's value is always displayed. What I need is to display, in this case, the unmatched value coming from the database and highlight the background to indicate a data error. Here is an excerpt of my code:
I am new to Struts tags and saw some <logic:> tags on the Apache Jakarta website. Perhaps I should use <logic:iterate> and/or <logic:nonMatch> ? But I never was able to find exactly what I needed.