• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can a compiled JSP page be used in a servlet?

 
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
Pie
Posts: 65120
91
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