This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread 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 Murach's Java Servlets and JSP this week in the Servlets 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: 60764
    
  65

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to submit large amount of text in the form?
 
Similar Threads
Writing to a text file using servlet
Submitting a form on pressing Enter key
Many to one Mapping in a ActionForm
submitting a form
Internationalization - with images