Link to home
Start Free TrialLog in
Avatar of aauser
aauser

asked on

output to value parameter of textarea

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

Avatar of Mick Barry
Mick Barry
Flag of Australia image

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";
           }
       }
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of aauser
aauser

ASKER

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.
Avatar of aauser

ASKER

excellent job objects,
thanks alot :-)