I need to build a mid-size Java web app, one of the tings the app should do is present the user with a text (standard HTML page), user then selects (highlights) certain words in the text and click "SomeButton", the app should create and return a list of the highlighted words, e.g. create an ArrayList<String> with all the phrases stored there, same time the app should change the background color of the words/phrases that the user already selected to make them aware of what has been and has not been selected.
Is this doable with good old JSP/Servlet? how? I have been considering bringing and learning new UI-focused technologies to help me with this like JSF and JavaFX, is this unnecessary?
Thanks for help.