• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat errors on standard out while running.

 
mo patel
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im planting HTML in out.println() for example ...
out.println(" <td height=\"42\"><font color=\"#FFFFFF\" size=\"2\"><img src=\"http://10.70.252.251:8080/images/search.jpg\" alt=\"Search RFCs by any term in the description\" border=\"0\"></font></td>");
.... more image stuff
However when the srvlet loads the page to the web pc, the servlet somtimes issues these errors...
2001-03-06 04:42:44 - Ctx( ): IOException in: R( + /images/search.jpg + null)
Connection aborted by peer: socket write error

On most images. However the images are in the images directory in ROOT on tomcat there names are exactly as they should be i.e case and spelling are correct. The images are even displayed correctly on the web page.
What does this mssg mean, and why does it not appear all the times.
 
mo patel
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note this problem does not occur when I use Netscape as the browser.
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't suppose it is the cause of your problem, but in general it is much easier to type and maintain if you use ' for quoting your attribute values. This is pewrfectly valid HTML and XML, and much easier to generate and process in Java:
 
mo patel
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Frank Carver:
[B]I don't suppose it is the cause of your problem, but in general it is much easier to type and maintain if you use ' for quoting your attribute values. This is pewrfectly valid HTML and XML, and much easier to generate and process in Java:
[/B]

Cheers frank my previous C background shines through with my code. Ive had Lots of problems with using the single quote so ive gone back to backslashing quotes etc.
The HTML is automatically brought in from Dreamweaver and then seded with the backslashes and quotes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic