Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP scriplet not getting executed on tomcat 5.5

 
Pravin Shirke
Ranch Hand
Posts: 152
Chrome Eclipse IDE Java
  • 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
  • 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 ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic