Usually when I view the source of html (IE40) I right click and it opens Notepad which
keeps everything nice and neat with mono-spaced characters. But my browser isn't
using the same character set. I am wondering if you're seeing the same type of thing.
Mike
-----Original Message-----
From: Schmidt, Allen J. <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, April 01, 1999 12:00 PM
Subject: Re: Returned Vector items
>I may be hitting a very narrow audience with this, but I am pulling in
>screenfuls of data from a mainframe 3270 screen with a 3rd-party vendor
>class. It reads a block of the screen (15rows x 80columns) and parses it
>into Vector elements - should be 15 total. The method is called from the
>servlet which is called by a form which passes in 4 parameters. The result
>of the servlet is an html page which displays a list of up to 15 college
>classes. (There is usually more than one 3270 screen of data but I have not
>figured out how to get the next ones, yet.)
>
>Each element has the full 80 characters of each row properly spaced, but
>when I wrap <PRE></PRE> tags around the elements (in any order,) some of the
>character sets within the element are bunched together on the web display.
>The viewed source shows the correct spacing.
>
>The placement of the PRE tags did eliminate the extra line, but not the
>'crunching' of characters.
>
>Thanks
>
>
>-----Original Message-----
>From: Bob Ryan [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, April 01, 1999 11:15 AM
>To: [EMAIL PROTECTED]
>Subject: FW: Returned Vector items
>
>
>I beg to differ. The first example will have a blank line between the two
>lines:
>
>element1
>
>element2
>
>While the second will not:
>
>element1
>element2
>
>The problem might be that you need to manually insert spaces for the "soft
>line breaks" in your source. If your editor automatically wraps each line,
>the spot where the wrap occurs will not be interpreted correctly by the
>browser when the file is sent for display.
>
>I missed how you aree populating the vector. Are you reading in a file? I
>can't explain it correctly, but "hard breaks" or "hard returns" are
>interpreted as spaces, but the automatically inserted line breaks are not
>understood and are ignored by the browser and therefore the text at those
>points have no spaces between them.
>
>-Bob
>
>-----Original Message-----
>From: Robert A. Crawford [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, April 01, 1999 10:53 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Returned Vector items
>
>
>On Thu, Apr 01, 1999 at 10:33:58AM -0500, Schmidt, Allen J. wrote:
>> I have the Vector element wrapped in the <PRE> </PRE> tag BUT the text
>> displayed is not one for one. Some parts of the element are correct -
>others
>> are 'butted' up next to the next part of the text. As stated, the view
>> source shows it correctly but the browser does not. ?????
>
> Does each element appear in <PRE> tags? IE, is it:
>
><PRE>element 1</PRE>
><PRE>element 2</PRE>
>
>or
>
><PRE>
>element 1
>element 2
></PRE>
>
> The first will behave like you describe. The second will
>probably be what you want.
>
> Generally, if the source is what you'd expect, but the display
>isn't, it's an HTML error.
>
>--
>Robert Crawford [EMAIL PROTECTED]
>http://www.iac.net/~crawford
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html