Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Text alignment in servlets JSP  RSS feed

 
Shrikant Raut
Greenhorn
Posts: 7
Java ME Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using jsch to fire commands using a jsp webpage but 'out.println' isn't giving proper aligned output as that of 'System.out.println' is there any other way to print the output of command fired in proper aligned manner(I.e. as it looks on terminal)

Or can we have console view in browser.

Any help would really be appreciable.

Regards.
 
Paul Clapham
Sheriff
Posts: 22472
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your question is about HTML, since that is what you are producing. So you could use <pre> tags or you could use a fixed-width font.
 
Mauro Trevigno
Ranch Hand
Posts: 99
Java Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Paul said, you should use HTML to structure you JSP and CSS to give them format.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!