Solved

Textarea question

Posted on 2009-06-29
6
877 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
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 50 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 50 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
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 
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

Independent Software Vendors: 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!

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…

740 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