Solved

Textarea question

Posted on 2009-06-29
6
864 Views
Last Modified: 2013-11-24
I have a referenceData method in my controller in springframework. the statement is mentioned below in the code tags which ii am using in my jsp page to output the value from the DB. When i run my JSP page it outputs empty in the textarea. I was able to output the list and the exact value is coming out from the DB. Why is it not outputting in my textArea ?

Secondly instead of this :-

<TEXTAREA rows="6" cols="50"

if i do this :-

<input type="text"

I can see the value but with Textarea it is not working. Any input ?
<c:forEach items="${information}" var="info">

<tr>	

<td  align = "left"><b>Notes</FONT></b></td>

<td colspan="3" align = "left">

<spring:bind path="user.notes">

	<TEXTAREA rows="6" cols="50"

	name='<c:out value="${status.expression}"/>'

	value='<c:out value="${info.notes}"/>'>

</TEXTAREA>

	<span><font color="red"><c:out

	value="${status.errorMessage}" />

	</font>

	</span>

</spring:bind>

</td>

</tr>

</c:forEach>

Open in new window

0
Comment
Question by:Micheal_Male
  • 4
6 Comments
 
LVL 13

Accepted Solution

by:
Murali Murugesan earned 200 total points
Comment Utility
<TEXTAREA rows="6" cols="50"
        name='<c:out value="${status.expression}"/>'
        value='<c:out value="${info.notes}"/>'>
</TEXTAREA>


Text area doesn;t have value attribute. try below,

<TEXTAREA rows="6" cols="50"
        name='<c:out value="${status.expression}"/>'>
        <c:out value="${info.notes}"/>
</TEXTAREA>

-Murali*
0
 
LVL 54

Assisted Solution

by:b0lsc0tt
b0lsc0tt earned 50 total points
Comment Utility
Micheal_Male,

For a value in a text area the contents or value needs to be in between the textarea tags.  There is no value attribute in the textarea tag.

Let me know if you have any questions or need more information.

b0lsc0tt
0
 
LVL 54

Assisted Solution

by:b0lsc0tt
b0lsc0tt earned 50 total points
Comment Utility
An example of this using your code is below.
bol

<TEXTAREA rows="6" cols="50"

	name='<c:out value="${status.expression}"/>'>

<c:out value="${info.notes}"/>'

</TEXTAREA>

Open in new window

0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 54

Expert Comment

by:b0lsc0tt
Comment Utility
Since I don't know that server script I want to show what the resulting html source (i.e. the browser source) should look like.  If the value is "This is the value" then the html tag would be like ...
<textarea rows="6" cols="50" name="textarename">This is the value</textarea>
bol
0
 
LVL 54

Expert Comment

by:b0lsc0tt
Comment Utility
Oops  ... as I read Murali's comment above it looks like he/she beat me to it.  Disregard my posts if that is the case.
bol
0
 

Author Comment

by:Micheal_Male
Comment Utility
Thank you. I did not even realized that thing.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now