aspose file tools*
The moose likes JDBC and the fly likes How to store a TextArea field into Database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to store a TextArea field into Database" Watch "How to store a TextArea field into Database" New topic
Author

How to store a TextArea field into Database

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234


Hello ,

In my JSP page there is a TextArea which accept upto 400 characters , please tell me how should a servlet receive this data and store it in database , and what should be the column in database . (i am using Oracle )

THanks in advance.


Save India From Corruption - Anna Hazare.
Balu Sadhasivam
Ranch Hand

Joined: Jan 01, 2009
Posts: 874



The VARCHAR2 data type can be used as data type for the column. VARCHAR2 can store maximum up to 4000 bytes.

Use the same way as you would do to store a normal String
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thanks Balu
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61657
    
  67

Please take the time to choose the correct forum for your posts. This forum is for questions on JSP.

For more information, please read this.

This post has been moved to a more appropriate forum.


[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 store a TextArea field into Database