File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP scriplet not getting executed on tomcat 5.5

 
Pravin Shirke
Ranch Hand
Posts: 150
Chrome Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have deployed my project on tomcat5.5 but JSP scriplet in my index.jsp is not getting executed.It is not displaying any errors neither it is logging any errors in the log file.It is displaying scriplet directly on the page as static HTML.

Please suggest something.
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure that your WEB-INF folder contains the mandatory web.xml file.

I assume your JSP is somewhere under WebContent.
Once you startup your server, check if the /tomcat/work/catalina/localhost/YOUR_PROJECT_NAME has the translated jsp somewhere within it.
If you jsp is names hello.jsp, the translated file will be names hello_jsp.java

Also, are you accessing your project via http://localhost:8080/projectName/hello.jsp ?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic