wood burning stoves 2.0*
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
Author

Reading a string from textarea

thippareddy mallikarjuna reddy
Greenhorn

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>

Thanks&Regards
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
Greenhorn

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

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60057
    
  65

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] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reading a string from textarea
 
Similar Threads
important HTML tidbit
Retrieve the text into textarea
How to retain textbox value after refresh
textarea scrollbar
Display a JSP include in a textarea