This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

find a string in jsp

 
sai sreenivas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to find the presence of a string in a paragraph in jsp and increment the counter if the word is more than once?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65661
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP is a view generation technology. So your question doesn't make much sense. Can you give us a broader context as to under what conditions this needs to happen and why?

Or is this a school assignment?
 
sai sreenivas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sai sreenivas wrote:How to find the presence of a string in a paragraph in jsp and increment the counter if the word is more than once?

I mean to say, I am entering text in a paragraph and in the next page I need to search for a particular word in the paragraph. If the word is present then I need to increment the counter.
 
Dave Tolls
Ranch Hand
Posts: 2369
25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So do you submit the paragraph to the server when you move to the next page?
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!