output to value parameter of textarea

aauser
aauser used Ask the Experts™
on
Hi,
 
is there a way to print the default value in
the textarea to the browse


name:<textarea NAME="phone" value="111-111"ROWS="3" COLS="20" wrap="virtual"></textarea>


the value 111-111 should show up in the browser.


thanks in advance

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Mick BarryJava Developer
Top Expert 2010

Commented:
try this:

rset = stmt.executeQuery ("select phone from address where name=('"+name1+"')");
      while (rset.next ()) {
           for (int i=1;i=1;i++) {
               phonenumber += rset.getString(i);
               phonenumber += "\n";
           }
       }
Java Developer
Top Expert 2010
Commented:
Also needs this:

out.println("Name:<textarea NAME=\"updatephone\" ROWS=\"4\" COLS=\"30\" wrap=
\"virtual\">"+phonenumber+"</textarea>");

Author

Commented:
at first I have problem printing the value from servlet,
but I also find out that the textarea value cannot
be display on the browser.

Author

Commented:
excellent job objects,
thanks alot :-)
Mick BarryJava Developer
Top Expert 2010

Commented:
No worries :)

http://www.objects.com.au/staff/mick
Brainbench MVP for Java 1
http://www.brainbench.com

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial