It's not a secret anymore!
The moose likes JSP and the fly likes Reading a string from textarea Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply locked New topic

Reading a string from textarea

thippareddy mallikarjuna reddy

Joined: Mar 08, 2006
Posts: 19
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>

Ed Ward
Ranch Hand

Joined: Jan 30, 2006
Posts: 147
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

Joined: Mar 17, 2006
Posts: 7
You can use request.getParameter("keywordName");
it will return the string of text area

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63838

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Reading a string from textarea
It's not a secret anymore!