Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

textarea tag problem

 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got wounder and getting problems with textarea tag, when I click on any area in the textarea, normally the cursor should go to the starting point, but the cursor is pointing wherever I click on the textarea. I think which is a bad approach.

And also When I get the message from server to client, the text is also displaying differently. The display text is in the middle of textarea.

How to get the message properly on textarea?

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64851
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The cursor being placed where the click occurs is the normal behavior and should not be changed! How else can users go to a specific location within the text to make changes?

The whitespace in the textarea matters. If you don't want that whitespace:


Also, you are still using scriplets in your JSPs?
 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:The whitespace in the textarea matters. If you don't want that whitespace:



This is what I'm expecting.. actually I never thought about to maintain start and end tags in the same line.
Hence I got space prior to the text.

Thanks Bear.

Bear Bibeault wrote:Also, you are still using scriplets in your JSPs?

Actually this application is a simple and it contains 4 pages only (for internal purpose), I thought we don't need to apply any framework for this. So I have to use general java/jsp

Kumar
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Framework? You don't need a framework to get rid of the old fashioned scriptlets.
Just write Java code in Java classes and use JSTL/EL for presentation flow.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic