I have an access database with a bunch of text values in it. The user selects specific search criteria, like name, make or model, then submits the page. The page, if it passes the forms' validate method, goes to the action, where methods determine which specific query to run. A service is run (think model of the MVC) where the resultset is created and used to populate each value in a resultBean. The resultBean's are then added to a Vector and, after going through the entire resultset, returned to the calling method in the Action. The resulting Vector is placed into the request object and returned to the 'success' page.
What I'd LIKE to do, is set up so that the specific search criteria that the user has entered is made red (<font color='red'>Search Criteria</font>). To be more specific, if the user selected Model=XYZ, Manufacturer=ABC, I'd like the application to highlight ABC and XYZ in ALL of the corresponding results in the JSP success page. I am having a bunch of difficulty with this though. I've tried to append the html commands onto the string before populating the corresponding value in the resultBean, but the JSP page displays the html as a literal string. ie. Model=<font color='red'>XYZ</font>
How / where would I create my html tags to highlight the specific search criteria that the user entered??
I thought about doing it in the JSP success page, but all I'm doing there is logic:iterate'ing through the collection that is returned in the request object...Any and all help on this is GREATLY appreciated! Thanks in advance to all the experts...