Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Textarea question

Posted on 2009-06-29
6
Medium Priority
?
896 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
6 Comments
 
LVL 13

Accepted Solution

by:
Murali Murugesan earned 800 total points
ID: 24741661
<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 200 total points
ID: 24741670
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 200 total points
ID: 24741677
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 24741683
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
ID: 24741688
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
ID: 24741716
Thank you. I did not even realized that thing.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
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…

610 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