This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Mastering Corda: Blockchain for Java Developers and have Jamiel Sheikh on-line!
See this thread for details.
Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Need help solving Java web app problem?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good Question..

When you observe the evolution of technologies, it will be like servlet -> JSP -> MVCs etc, Now MVCs are ruling the world because of the features provided by them.

Use JSF plain for basic mvc flow and richfaces for rich look of the application.

Solution for your scenario.

Define a form in the jsp (list of names /menu list) & bind it to the bean in web-layer then it's your time to play with the features of JSF.
you can get many samples on internet for this.

Rgds
Mahesh PS
 
If you want to look young and thin, hang around old, fat people. Or this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic