Win a copy of Learn Spring Security (video course) this week in the Spring forum!
    Bookmark Topic Watch Topic
  • New Topic

Reading a string from textarea

 
thippareddy mallikarjuna reddy
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi pals,

I have written one JSP page. in this page i am usig textarea. user can enter more than one word by separating cama. after submitting the page. i need to get textarea words.

sample code:
<textarea name="keywordName" cols="30" rows="2" ></textarea>

Thanks&Regards
 
Ed Ward
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Report post to moderator
Sounds a little like part of an assignment so I'll try not to give too much away.
The text value entered in the TEXTAREA is passed as a parameter, with the request, with the name "keywordName"
Have a look at the ServletRequest API.
 
srinivasa v reddy
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi
You can use request.getParameter("keywordName");
it will return the string of text area

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.
 
    Bookmark Topic Watch Topic
  • New Topic