I'm a complete novice with JSP so need help with querying a string. The following string comes from a search template which checks the url of result
final String resultUrlDisplay = utils.convertToXhtml(results.getResultLocation(resultNo, 80));
What I need to do is use string functions to test that string and see which website it is from. Based on that, I need to set a class to the anchor and set the image based upon the class. So for example if the result url is microsoft.com the image should be the msn logo, if it's yahoo.com, it's the yahoo logo. Any assistance greatly appreciated!