File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes textarea tag problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "textarea tag problem" Watch "textarea tag problem" New topic
Author

textarea tag problem

Simpson Kumar
Ranch Hand

Joined: Mar 19, 2008
Posts: 261
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?



Thanks,
Kumar
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61607
    
  67

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?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Simpson Kumar
Ranch Hand

Joined: Mar 19, 2008
Posts: 261
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

Joined: Oct 08, 2006
Posts: 2458
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: textarea tag problem