Highlight the result

Hi Everyone,

I have one text box in jsp page. I ask user to type in one article then using one servlet to check out the typo. I pass the article back to jsp and highlight the typo. My question is

1. how do i pass the article ? In ListArray or String?

2. then, it would come out the 2nd question how do i highlight the typo in one text box?

Thanks in advance.

[390 byte] By [faceblinda] at [2007-11-27 10:43:22]
# 1

3. if user still has type after submitting, I need go back to 1.

the way I am doing is artilcal would be stored as String, and typo would be embedded with html tag, i.e. <font color = red> typo </font> and stored back to String.

In html text box, display the String.

The problem is the area in between <textarea>and </textarea> won't interpret html tag in my String.

Anyone can pull me out of water?

faceblinda at 2007-7-28 19:59:59 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...