Highlighting all the occurrences of the search text

Hello All,

can anybody tell me how to highlight the search text in HTML in JSP.

I have this String...

MTMISRVLGL IRDQAISTTF GANAVTDAFW VAFRIPNFLR RLFAEGSFAT AFVPVFTEVK ETRPHADLRE LMARVSGTLG GMLLLITALG LIFTPQLAAV

and I want to highlight, just QAISTTF GAN, GMLLLITALG, LAAV and change the font color of the search text.

Any help would be appreciated.

[387 byte] By [swathi_4ua] at [2007-10-2 21:36:39]
# 1
Can't you just replace the search string in your text with itself surrounded by font tags?
matty1stopa at 2007-7-14 0:50:53 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

If I do like that, search string is displayed, but it is below the main string.

MTMISRVLGL IRDQAISTTF GANAVTDAFW VAFRIPNFLR RLFAEGSFAT AFVPVFTEVK ETRPHADLRE LMARVSGTLG GMLLLITALG LIFTPQLAAV

QAISTTF GAN, GMLLLITALG, LAAV......I don't want like this.

I want the main string and in that, what ever I want to search has to be highlighted.

MTMISRVLGL IRDQAISTTF GANAVTDAFW VAFRIPNFLR RLFAEGSFAT AFVPVFTEVK ETRPHADLRE LMARVSGTLG GMLLLITALG LIFTPQLAAV

swathi_4ua at 2007-7-14 0:50:53 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...