Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with textarea  RSS feed

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In my jsp i have two textarea fields(Mapped to two attributes present in the Form). I'm using <layout:textarea>. The user
is allowed to enter data in the two fields and save. After saving I need to display the same page with saved data in the two textarea fields.
But it is seen that after saving, the data is not getting displayed in the textarea.

I tried giving <c ut> to check whether the data was getting set in the Form's data object. I'm able to print the data with <c ut>. But I dont know why its not getting displayed in the textarea.

Can somebody resolve this

Thanks!
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
In my jsp i have two textarea fields(Mapped to two attributes present in the Form). I'm using <layout:textarea>. The user
is allowed to enter data in the two fields and save. After saving I need to display the same page with saved data in the two textarea fields.
But it is seen that after saving, the data is not getting displayed in the textarea.
solution:use <html:textarea> instead of <layout:textarea> and then try.
 
Uh oh, we're definitely being carded. Here, show him this tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!