Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display Code

 
Thana Bujakorn
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
This is probably a silly question but how do I display JSP code in HTML. Tomcat compiles the code everytime.
Thanks
[ September 01, 2006: Message edited by: Thana Bujakorn ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't.
JSP code never gets sent to the browser.
 
Philipp Volkemer
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But it should be possible.
Check out the jsp-examples that come with Tomcat. You can actually display the source code there.

Well, thinking about you probably can't do it with dynamic content.
The jsp-examples source files are all static.
[ September 01, 2006: Message edited by: Philipp Volkemer ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no mechanism within JSP for showing JSP source code.
In the example app that ships with Tomcat the a copy of the code was presented as plain text.
 
Thana Bujakorn
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!!!
everyone
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic