File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes values of textarea Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "values of textarea " Watch "values of textarea " New topic

values of textarea


Joined: Feb 25, 2002
Posts: 2
how can i make the values of textarea to be a jsp or html files when the form post?
please help me.

Christopher Dixon

Joined: Jan 30, 2002
Posts: 22
I'm not sure I understand the question. Are you trying to write the .jsp source on the fly, like an admin screen? You can write (using the package) out to disk using a FileWriter, usually wrapped in a BufferedWriter to improve performance. See
Sun IO tutorial for some pointers, and don't forget to flush() the BufferedWriter before close()ing it.
Just remember, the ability to write and execute server code from a web interface could be very badly abused (Runtime.exec("some bad code"), for starters) and should be protected accordingly.
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
Javaranch has a naming policy. Please read the policy and change your display name to one that conforms to continue posting here. Thanks.

Matthew Phillips
I agree. Here's the link:
subject: values of textarea
jQuery in Action, 3rd edition