Meaningless Drivel is fun!*
The moose likes JSP and the fly likes Problem with TextArea in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Problem with TextArea in jsp" Watch "Problem with TextArea in jsp" New topic
Author

Problem with TextArea in jsp

Anju
Greenhorn

Joined: Nov 08, 2004
Posts: 10
Hi,

Belowis my code in a fucntion in a JSP

sb1.append("& ltTEXTAREA class =\"inputTextClass\" name=\"description\" );
sb1.append("\" rows=4 cols=40>& lt/TEXTAREA>");

b1.append("& ltdiv>& ltbr>& ltbr>");
sb1.append("& ltdir=\"ltr\" id=\"blqtContactUS\">");
sb1.append("& ltlabel>");
sb1.append("User ID (email alias):");
sb1.append("& lt/label>");
sb1.append("& ltspan>& ltinput id=\"txtUserId\" name=\"UserId\" size=\"5\" maxlength=\"4\" tabindex=\"6\" nkeypress=\"fn_CheckFeedbackButton()\" nfocus=\"fn_FeedbackButtonState()\" nblur=\"fn_FeedbackButtonState()\" nchange=\"fn_FeedbackButtonState()\">& lt/input>& lt/span>\n");
strBuffer.append("& lttextarea>" +sb1.toString() + "& lt/textarea>");

i.e when i try to display all the code in the text area it only displaying up <EXTAREA class =\"inputTextClass\" name=\"description\" );
sb1.append("\" rows=4 cols=40> and trucating the remaining.

Is there new tags assciated with TextArea or I am missing something...

sorry I was not sure where to post such question.

Any help is appreciated.
;)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60053
    
  65

Why are you building up HTML markup inside Java code inside a JSP? Just use template text and simplify things considerably.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with TextArea in jsp
 
Similar Threads
textarea in Jsp shows fisrt line indented always?
textarea scrollbar
textarea cols ?
problem in validating text area max length
Retrieve the text into textarea