Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to load .jsp files in java programs

 
Hongyun Sun
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Recently,i face a tricky question:
in my program,i want to load my jsp files without tomcat,say,while i run my program ,i'm able to freely show my jsp files content written by HTML and javabean .
Exactly speaking,is there any classes or packages in JDK or other manuls i can use to fulfill this function mentioned above?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. JSP pages have no meaning outside of a servlet container, so what you ask is fundamentally impossible (assuming that by "Tomcat", you mean any servlet container).
 
Forget Steve. Look at this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!