Originally posted by Andrea Gazzarini:
Hi Linda, the two lines of code are perfectly the same thing.
regarding your problems I can suggest two things:
1)you can specify the size of the StringBuffer as an int variables so I suppose a StringBuffer can't contains (Integer.MAX_VALUE + 1) chars;
2) You insert in the StringBuffer an HTML page. I suppose you use this in a Servlet. In this case, look at the html code, because if there is a syntax error, the page is printed until the error is reached. This not means the StringBuffer doesn't hold your string, but simply the Browser (IE, NEtscape??) html parser doesn't recongnize the rest of the page.
Hope it helps.
well andrea
i dont think there's any problem with HTML code as this is the code supplied to me by Front Page. It is just that i have to get the values printed from database between this HTML tags.
I had to ask abt the size problem just because, if i remove some line that i have put as comments in HTML tag, the same number of line are then appended to the output & as a result i can see more HTML stuff.
hope i m clear
MB