• Post Reply Bookmark Topic Watch Topic
  • New Topic

Database Problem.  RSS feed

 
Pulkit Malhotra
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

Please help me and provide me possible solution of the following problem.

While retrieving the data from the database my all fields get populated except textarea(requirement is to use textarea only). Can you tell me what could be the reason and what will be the possible solution for the same ?.

Thanks in advance.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show us some code?
 
Pulkit Malhotra
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please look into the following code :-

<tr>
<td>OrgShort ID <span class="red style1"> *</span></td>
<td><span class="contentBlackBold11">
<input type="text" name="OrgSid" value="<%=rs.getString("ORG_ID")%>">
</span></td>
</tr>
<tr>
<td>long Description <span class="red style1"> *</span></td>
<td><span class="contentBlackBold11">
<textarea name="OrgLid" value="<%=rs.getString("LONG_DESC")%>"></textarea>
</span></td>
</tr>

The above mention code retrieving the value for "orgshort id" but not for "long Description". If i use text box instead of textarea it will work fine.
Requirement is to use textarea.

I appreciate your support.
 
Anupam Sinha
Ranch Hand
Posts: 1090
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think it's a database problem. It's basically textarea should be populated like


Rather than using the value attribute.
 
Pulkit Malhotra
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks very much... It worked.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!