Tom;

Wow , I am so used to getting ResultSet values by
column number rather than by name, that at first I did
not know **what** you were doing !!

Anyway, I belive that the value text is supposed to
wrapped in double quotes. There is a small chance that
this may fox your problem.  Also leave a space between
the result and the cols keyword.

out.println("<textarea name=textarea1
value=\""+result+"\" cols=20 rows=15 >");

Otherwise, I think you have a problem elsewhere in
your code. You might want to try printing the value of
"myvalue" to make sure you are getting a correct value
from the database.

\\Nicholas
--- Tom John <[EMAIL PROTECTED]> wrote:
> Hi,
>
>  How can we assign a value taken by a database to a
> text area. The following
> code does not work, value is not assigned to the
> textarea.
> What's wrong
>
>
>
>
> ..
> ..
> String result=resultset.getString("myvalue");
> out.println("<textarea name=textarea1
> value="+result+"cols=20 rows=15 >");
> ..
> ..
>
> TOM
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
>


=====
--
Nicholas Whitehead
Marketwide Software & Consulting Inc.
[EMAIL PROTECTED]
Home: 973 377 9335
Current Office: 212 559 9314
__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to