• Post Reply Bookmark Topic Watch Topic
  • New Topic

difference between System.out.println and out.println in jsp

 
dheeraj chhabra
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In JSP we want to write the JNLP file contents to a ouput stream using "out.printl()".

The content of the JNLP file i am having in a String.

The "System.out.println()" is printing the correct JNLP file contents but "out.println()" writing wrong contents which are taken from Server JNLP file.


How to solve this problem?

Please guide me in this.

Thanks and Regards:
Dheeraj
 
jiju ka
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some suggestion:
When you write to System.out you can see the contents. But when you write the same contents to JSP's printwriter you are seeing wrong contents. Does the contents contain any html tag or xml tag or anything to infer that it is a tag?

If yes then your browser is fooling you. This will probably the case because your source remains same but target differs.

If you can, try eliminating or encoding tags in contents.
[ February 14, 2006: Message edited by: jiju ka ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!