This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes how to submit large amount of text in the form? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to submit large amount of text in the form?" Watch "how to submit large amount of text in the form?" New topic
Author

how to submit large amount of text in the form?

xiaoma wang
Ranch Hand

Joined: Mar 04, 2002
Posts: 74
hi, everyone:
I am doing a project and meet a question:
In the HTML form, i want to submit some text to the target jsp file. Usually, text box is used to be filled in the text. But I need a large text area to write sth and submit it to the jsp file. Can anybody tell me how to do it? Thanks in advance!
Xiaoma Wang
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Just create the textarea using the appropriate HTML tags. You can specify ROWS, COLS, WRAP, etc.I know it does not have a VALUE atribute. Any text that's typed in will be sent to the server.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61084
    
  66

And be sure to make the method on your form POST (the default is GET).
hth,
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: how to submit large amount of text in the form?