Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can a compiled JSP page be used in a servlet?  RSS feed

 
vishwanath nadimpally
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was looking through my tomcat's work\Catalina\localhost\ and found for each of the deployed context's jsp pages there are .java files and .class files. These are the compiled jsp pages that the jsp compiler creates during the jsp life cycle.

Now, just a thought, can we use these compiled jsp classes in any way, like instantiating a jsp's .java class inside a servlet or something. I don't know if this will serve any purpose or it will be good to any end, but just a thought and I would appriciate any comments on this.
[ October 19, 2006: Message edited by: vishwanath nadimpally ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would be a very bad idea.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!