*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "values of textarea " Watch "values of textarea " New topic
Author

values of textarea

adon
Greenhorn

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
Greenhorn

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 java.io 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.
HTH,
Chris
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
adon,
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
 
 
subject: values of textarea
 
Similar Threads
TextArea Max Characters
TextArea Max Characters
Session Maintainence
values of textarea
how to use Expression Language for Textarea